@wristband/nextjs-auth
Version:
SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.
15 lines (14 loc) • 712 B
TypeScript
import { AuthConfig, CallbackData, CallbackResult, CallbackResultType, LoginConfig, LogoutConfig, 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 { AuthConfig, CallbackData, CallbackResult, LoginConfig, LogoutConfig, TokenData, WristbandAuth };
export { createWristbandAuth, CallbackResultType, WristbandError };