Skip to main content
Turso uses scoped, JWT-based tokens to control access to your databases. Every token can be restricted by database, permission level, and expiration — giving you full control over what each client can and cannot do.

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:
Or a token that only allows reading from all tables and inserting into comments:

Issuing Tokens

There are two ways to issue tokens: Both approaches support fine-grained permissions to control access at the table and action level.

Using Tokens

All tokens are passed as the authToken when creating a database client:
You can get your database URL with turso db show <database-name> --url.