The Auth Module provides methods to manage authentication and retrieve session-related data for your embedded application.This module can be accessed via embedded.auth and is used for the following:
Get Token
Retrieve the session token with embedded.auth.getToken().
Refresh Token
Request a reload with a fresh token using embedded.auth.refresh().
Introspect
Inspect token details from the frontend with embedded.auth.introspect().Security Note#
Always remember that frontend token retrieval is only the first step. For a secure integration, you must verify these tokens on your backend via Salla's Introspection API.