@wristband/express-auth
Version:
SDK for integrating your ExpressJS application with Wristband. Handles user authentication and token management.
15 lines (14 loc) • 745 B
TypeScript
import { AuthConfig, CallbackData, CallbackResult, CallbackResultType, LoginConfig, LogoutConfig, TokenData } from './types';
import { WristbandAuth } from './wristband-auth';
import { InvalidGrantError, 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, InvalidGrantError };