@donation-alerts/auth
Version:
Authentication provider for Donation Alerts API with ability to automatically refresh user tokens.
19 lines • 620 B
TypeScript
import { CustomError } from '@donation-alerts/common';
/**
* An error indicating that a token does not include the requested scope.
*/
export declare class MissingScopeError extends CustomError {
private readonly _userId;
private readonly _scopes;
/** @internal */
constructor(_userId: number | null, _scopes: string[], message: string);
/**
* The ID of the user associated with the token, or `null` if user is not known.
*/
get userId(): number | null;
/**
* The list of missing scopes.
*/
get scopes(): string[];
}
//# sourceMappingURL=missing-scope.error.d.ts.map