UNPKG

@wristband/nextjs-auth

Version:

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

19 lines (18 loc) 499 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WristbandError = void 0; class WristbandError extends Error { constructor(error, errorDescription) { super(error); this.name = 'WristbandError'; this.error = error; this.errorDescription = errorDescription; } getError() { return this.error; } getErrorDescription() { return this.errorDescription; } } exports.WristbandError = WristbandError;