Skip to main content
Instead of managing tokens manually, you can let your authentication provider issue JWT tokens using JWKS. This allows you to leverage your existing auth infrastructure (e.g., Clerk, Auth0).
During the Turso Beta, we only support Clerk & Auth0 as OIDC providers.
1

Generate JWT Template

Use the Turso CLI to generate a JWT claims template for your auth provider:
Copy the generated template into your auth provider’s JWT configuration.
2

Add JWKS Endpoint to Turso

Register your auth provider’s JWKS endpoint with your Turso organization:
For example, with Clerk:
You can also add JWKS endpoints in the Turso Dashboard under organization settings.
3

Use Tokens in Your Application

Get the JWT from your auth provider and pass it as the authToken:

Managing JWKS Endpoints

If you don’t setup a JWT template with specific permissions, the generated tokens will have access to all databases in all groups by default.