UNPKG

@wristband/nextjs-auth

Version:

SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.

13 lines (12 loc) 521 B
import { CallbackResultType, } from './types'; import { WristbandAuthImpl } from './auth/wristband-auth'; import { WristbandError } from './error'; /** * Wristband SDK function to create an instance of WristbandAuth. * @param {AuthConfig} - authConfig Configuration for Wristband authentication. * @returns {WristbandAuth} - An instance of WristbandAuth. */ function createWristbandAuth(authConfig) { return new WristbandAuthImpl(authConfig); } export { createWristbandAuth, CallbackResultType, WristbandError };