📘 Some mobile SDKs still use workspace key and workspace secret
authentication.

Enhanced Security Mode with signed User Token
When enhanced security mode is on, user level authentication is performed for all requests. This is recommended for Production workspaces. All requests will be rejected by SuprSend if enhanced security mode is on and signed user token is not provided. This signed user token should be generated by your backend application and should be passed to your client.1
Generate Signing Key
You can generate Signing key from SuprSend Dashboard (below Public Keys section in API Keys page).
Once signing key is generated it won’t be shown again, so copy and store it securely. It contains 2 formats: (i.) Base64 format: This is single line text, suitable for storing as an environment variable. (ii.) PEM format: This is multiline text format string.You can use any of the above format. This key will be used as secret to generate JWT token as shown in below step.

2
Creating Signed User JWT Token
This should be created on your backend application only. You will need to sign the JWT token with the signing key from above step and expose this JWT token to your Frontend application.If your workspace uses multiple tenants, use scope.tenant_id to restrict user access to specific tenants. Pass an array of tenant_id’s to allow only those tenants, or
- JWT Algorithm:ES256
- JWT Secret:Signing key in PEM format generated in step1. If you are using Base64 format, it should be converted in to PEM format.
- JWT Payload:
["*"] to allow all of them.If you omit scope or set it to null, inbox and preferences fall back to the default tenant, while other features like events and user methods use the null scope as-is.Note: If you pass tenant_id in scope, you must also pass tenant_id in the identify method of every SuprSend SDK, else all SDK API calls throw a scoping error.Create JWT token using above information:
3
Using signed user token in client
After creating user token on backend send it to your Frontend application to be used in SuprSend SDK as user token.