tursodatabase/turso-cli

OAuth device flow for headless login?

penberg opened this issue · 0 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.