TursoClientError: could not parse jwt id
adriangalilea opened this issue · comments
When trying
const created_db = await turso.databases.create("foo");
I get
TursoClientError: could not parse jwt id
at TursoClient.request (webpack-internal:///(rsc)/./node_modules/@tursodatabase/api/dist/index.js:405:13)
I'm using default
org
and the token is the group level one.
Hey, the token
you pass to createClient
needs to be an API Token you create using the CLI: https://docs.turso.tech/cli/auth/api-tokens/mint
I hope this helps.