How authentication works
Flow diagram: Below is a diagram of the authentication flow for Partner Token exchange with Suki.Flow steps
User Signs In
partnerToken).Identity Provider Issues a Partner Token JWT
partnerToken (Partner Token). It must be a standard JWT that Suki can verify with your public keys.Token requirements:- Signed with the RS256 algorithm.
- Issued by your identity provider after user authentication.
- Includes user identifier claims that Suki can verify.
- Includes
exp,iss,aud, and a user identifier claim such assub,email, or a custom claim you registered during onboarding.
Your App Initializes the Suki SDK with the Partner Token
partnerToken and your partnerId. The SDK sends these values to Suki’s backend for validation. You use your existing authentication system for the user; Suki trusts that system through token exchange rather than creating separate user accounts.SDK Sends the Partner Token to the Suki Backend
Suki Backend Validates the Token Using Your JWKS Endpoint
- Uses your
partnerIdto find your partner configuration. - Fetches your public keys from your registered JWKS endpoint (or another public-key sharing method you configured during onboarding).
- Verifies the token’s digital signature with those keys.
- Confirms the token has not expired and contains the required claims.
SDK Stores the Token Internally
SDK Ready for Use
User Requests a Suki Feature and the App Calls an SDK Method
SDK Makes an Authorized Request to the Suki Backend
Suki Backend Returns a Result; SDK Returns It to the App