User

Representation of logged-in user.

  • Sets the tokens. Should only be used when testing.

  • Delegates listening to User events such as logout

  • user idToken

  • User UUID

  • User integer id (as string). Equivalent of legacyID in old AccountSDK

    A user_id used by some Schibsted account APIs

  • Log user out

    Will remove stored session, including all user tokens.

  • Check if this user is logged-in.

    The user may have been logged out either explicitly via logout method or automatically if no valid tokens could be obtained (e.g. due to expired or invalidated refresh token).

  • Generate URL with embedded one-time code for creating a web session for the current user.

  • Requests a OAuth authorization code for the current user. The code is short-lived and one-time use only.

  • Fetch user profile data