Type Alias: AuthErrorCode
Type Alias: AuthErrorCode
AuthErrorCode = typeof
TOKEN_INVALID| typeofTOKEN_EXPIRED| typeofTOKEN_REVOKED| typeofINVALID_CREDENTIALS| typeofACCOUNT_LOCKED| typeofREQUIRES_2FA| typeofVALIDATION| typeofUNAUTHORIZED| typeofFORBIDDEN| typeofNOT_FOUND| typeofCONFLICT| typeofRATE_LIMITED| typeofSERVER_ERROR| typeofINVALID_CLIENT| typeofINVALID_GRANT| typeofINVALID_SCOPE| typeofUNSUPPORTED_GRANT_TYPE|string
Defined in: auth-shared/src/errors/codes.ts:44
Union of every code the SDK / adapters should expect to receive. Not exhaustive — server may add new codes — so always treat unknown codes as a generic auth error rather than a hard failure.