ImpersonateErrors

@accounts/serverGlobalsImpersonateErrors

Index

Enumeration members

Enumeration members

ImpersonatedUserNotFound

ImpersonatedUserNotFound: = "ImpersonatedUserNotFound"

Defined in packages/server/src/errors.ts:44

Impersonated user not found If option ambiguousErrorMessages is true, this will never throw.


InvalidSession

InvalidSession: = "InvalidSession"

Defined in packages/server/src/errors.ts:39

Session is not valid


InvalidToken

InvalidToken: = "InvalidToken"

Defined in packages/server/src/errors.ts:49

Will throw if access token is missing.


SessionNotFound

SessionNotFound: = "SessionNotFound"

Defined in packages/server/src/errors.ts:57

Will throw if session is not found.


TokenVerificationFailed

TokenVerificationFailed: = "TokenVerificationFailed"

Defined in packages/server/src/errors.ts:53

Will throw if verification of the access token failed.


UserNotFound

UserNotFound: = "UserNotFound"

Defined in packages/server/src/errors.ts:35

Will throw if user is not found.