@donation-alerts/auth
Version:
Authentication provider for Donation Alerts API with ability to automatically refresh user tokens.
18 lines • 569 B
TypeScript
import { CustomError } from '@donation-alerts/common';
/**
* An error indicating the token is invalid.
*
* This may relate to access tokens, refresh tokens, or other token-related data.
*/
export declare class InvalidTokenError extends CustomError {
private readonly _userId;
/** @internal */
constructor(_userId: number | null, message: string);
/**
* The ID of the user associated with the token.
*
* Returns `null` if the user is unknown.
*/
get userId(): number | null;
}
//# sourceMappingURL=invalid-token.error.d.ts.map