propylons-client
Version:
Client package for Propylons
20 lines (19 loc) • 681 B
TypeScript
/*!
* Propylons
* Copyright(c) 2022 Xavier Raffin
* MIT Licensed
*/
export declare enum InvalidityReason {
tokenExpired = "tokenExpired",
tokenDateInFuture = "tokenDateInFuture",
tokenWrongFormat = "tokenWrongFormat",
tokenInvalidRole = "tokenInvalidRole",
tokenProvidedIsNotTokenId = "tokenProvidedIsNotTokenId",
tokenSignatureInvalid = "tokenSignatureInvalid",
tokenSignedByUnkownKeyID = "tokenSignedByUnkownKeyID",
tokenSignedByWrongAuthority = "tokenSignedByWrongAuthority",
tokenMissingFields = "tokenMissingFields"
}
export declare class InvalidTokenError extends Error {
constructor(message: string, reason?: InvalidityReason);
}