Scoping Levels
Tokens are scoped at multiple levels, from broad to narrow:
These can be combined. For example, a read-only token scoped to a single database that expires in 7 days:
comments:
Issuing Tokens
There are two ways to issue tokens:- Platform Tokens — Create tokens directly via the Turso CLI or Platform API.
- External Auth Providers — Let your authentication provider (e.g., Clerk, Auth0) issue tokens using JWKS.
Using Tokens
All tokens are passed as theauthToken when creating a database client:
You can get your database URL with
turso db show <database-name> --url.