UNPKG

@wristband/express-auth

Version:

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

19 lines (18 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidGrantError = exports.WristbandError = exports.CallbackResultType = exports.createWristbandAuth = void 0; const types_1 = require("./types"); Object.defineProperty(exports, "CallbackResultType", { enumerable: true, get: function () { return types_1.CallbackResultType; } }); const wristband_auth_1 = require("./wristband-auth"); const error_1 = require("./error"); Object.defineProperty(exports, "InvalidGrantError", { enumerable: true, get: function () { return error_1.InvalidGrantError; } }); Object.defineProperty(exports, "WristbandError", { enumerable: true, get: function () { return error_1.WristbandError; } }); /** * 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 wristband_auth_1.WristbandAuthImpl(authConfig); } exports.createWristbandAuth = createWristbandAuth;