tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
215 stars 35 forks source link

Fix authentication check #112

Closed penberg closed 1 year ago

penberg commented 1 year ago

The isJwtTokenValid() function hammers the databases endpoint, which can be heavy-weight. Let's switch to the newly added user information endpoint instead: https://github.com/chiselstrike/iku-turso-api#get-user-information

haaawk commented 1 year ago

GetUserInfo requires user ID. Does CLI know that ID? I think I will just add another super simple endpoint just for user validation.