UNPKG

@wristband/nextjs-auth

Version:

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

15 lines (14 loc) 783 B
import { AppRouterCallbackResult, AuthConfig, CallbackData, CallbackResultType, LoginConfig, LogoutConfig, PageRouterCallbackResult, TokenData } from './types'; import { WristbandAuth } 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. */ declare function createWristbandAuth(authConfig: AuthConfig): WristbandAuth; /** * Exports */ export type { AppRouterCallbackResult, AuthConfig, CallbackData, LoginConfig, LogoutConfig, PageRouterCallbackResult, TokenData, WristbandAuth, }; export { createWristbandAuth, CallbackResultType, WristbandError };