tursodatabase / turso-cli

Command line interface to Turso.

Home Page:https://turso.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth device flow for headless login?

penberg opened this issue · comments

Tom on Discord writes:

Authenticating the Turso CLI in a headless environment is cumbersome and every time my token expires this is a large source of frustration. A good example of a headless authentication flow would be that of the GitHub CLI.

The main problem I have with the current one is that I am given a string to export a code as a variable. I would much rather have the CLI update the config file itself with me either pasting in the authentication code or through a server call. These are the two options given with the GitHub CLI and it makes authenticating extremely simple.

Let's look into enabling the OAuth device flow to make the experience better.