loadUser MethodProtected

Gets the user from storage

loadUser(): Promise<undefined | User>

@returns User found in storage.

  • Resolves to undefined if no user was found.
  • Returned user may have expired - so it's up to the caller to check the expired state

Returns - Promise<undefined | User>

User found in storage.

  • Resolves to undefined if no user was found.
  • Returned user may have expired - so it's up to the caller to check the expired state

Defined in

Last Updated: 06 November, 2024