UNPKG

@wristband/nextjs-auth

Version:

SDK for integrating your Next.js application with Wristband. Handles user authentication, session management, and token management.

22 lines (21 loc) 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidGrantError = void 0; const wristband_error_1 = require("./wristband-error"); /** * Represents an OAuth2 `invalid_grant` error. * * Typically occurs when refresh tokens are invalid, expired, or revoked. * Extends {@link WristbandError} with a fixed error code of `'invalid_grant'`. */ class InvalidGrantError extends wristband_error_1.WristbandError { /** * Creates a new InvalidGrantError instance. * * @param errorDescription - Optional human-readable description of the error. */ constructor(errorDescription) { super('invalid_grant', errorDescription || ''); } } exports.InvalidGrantError = InvalidGrantError;