The Generate Token API is used to generate a temporary session token that enables you to use the Sunlight Connect SDK. To generate a session token, you must provide a valid external_user_id, which can be obtained by calling the Create a User API. The response includes the generated session token and its expiration date (expired_at). The session token is temporary and expires after 3 hours. If needed, you can request a new session token for the same external_user_id, which will revoke any previous sessions and return a new session token for you to use.

Language
Authorization