UNPKG

@wristband/express-auth

Version:

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

13 lines (12 loc) 554 B
import { CallbackResultType, } from './types'; import { WristbandAuthImpl } 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. */ function createWristbandAuth(authConfig) { return new WristbandAuthImpl(authConfig); } export { createWristbandAuth, CallbackResultType, WristbandError, InvalidGrantError };