The getToken method is used to retrieve the short-lived session token that Salla passes to your app via the iframe URL. This token is required for backend verification.Usage#
API Reference#
embedded.auth.getToken()#
| Return Value | Description |
|---|
string | null | The session token if present in the URL, otherwise null. |
Call early: Retrieve the token immediately after init() to start your verification process.
Handle Nulls: Always check if the token exists before attempting to use it.
Modified at 2026-02-12 08:53:55