The configuration passed when this instance was created.
The returned object and its defaultProductIds and varnish values are frozen copies;
changing them does not reconfigure the SDK.
Builds the Schibsted Account profile page URL.
OptionalredirectUri: stringWhere the account page should redirect the browser afterwards.
Removes a cached access-check result.
Product or feature ids used for the cached lookup.
User id used for the cached lookup.
Removes the cached Session Service user session response.
Returns an external identifier for the authenticated user, scoped to the configured client and external party.
External party for which the identifier is generated.
Optional suffix included when generating the identifier.
Returns the Varnish sp_id value from the current session when present.
Returns the connected user session data.
Returns minimal user context for simplified login prompts.
Returns null if the global account session cannot be read.
Returns the realm-specific Schibsted Account user id as a number.
Use getUserUuid() when you need the globally unique user id.
Returns the user SDRN from the current session.
Returns the globally unique user id from the current session.
Checks whether the current user has access to any of the requested products or features.
When productIds is omitted, the ids configured as defaultProductIds are used.
Results are cached according to the TTL returned by Session Service.
Product or feature ids to check instead of the configured defaults.
Access data, or null when the user is not entitled.
Queries Session Service and returns the current browser session state.
This call may trigger a full-page session refresh redirect. Configure
callbackBeforeRedirect if your app needs to persist state before that navigation.
Checks whether the current user is connected to the configured client.
A user can be logged in to Schibsted Account without being connected to your client, for example before accepting required terms.
Checks whether the browser currently has a Schibsted Account session.
Returns false instead of throwing when the session lookup fails.
Starts the login flow with either a full-page redirect or a popup.
Call this from a user gesture when preferPopup is enabled, otherwise browser popup blockers
may block the popup and the SDK will fall back to redirect navigation.
Login URL parameters.
A popup window reference when a popup is opened; otherwise null.
Builds the login URL without navigating the browser.
Login URL parameters.
Logs the user out from the brand Session Service session and redirects the browser.
OptionalredirectUri: stringWhere Session Service should redirect the browser after logout.
Builds the logout URL without navigating the browser.
OptionalredirectUri: stringWhere Session Service should redirect the browser after logout.
Unsubscribes from Account events.
Supported event names are defined by AccountEventName.
Event name.
Listener to remove.
Subscribes to Account events.
Supported event names are defined by AccountEventName.
Event name.
Listener that receives an Event or CustomEvent.
Enables or disables caching for subsequent session lookups.
Changing this setting does not remove an existing cached session.
Loads and displays the simplified login widget when user context is available.
Your application decides how often to call this method. The state field in loginParams
may be a string or a function that resolves to a string.
Widget open and cancel events can be observed with on().
Optionaloptions: SimplifiedLoginWidgetOptionstrue when the widget was displayed.
Unified client-side interface for a configured Schibsted Account integration.
Create an instance with
createAccountSdk()unless you explicitly need to construct it yourself. The instance coordinates identity, login, session, and access-check features for one configured client.