UNPKG

@wristband/nextjs-auth

Version:

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

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