You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originally reported by tiny_m over on Discord, and I ran into it myself tonight as well.
How does one tell the CLI to generate a new access token?
The only way I have found to be able to fix this issue is to remove ~/.begin/config.json and do a new begin login
Expected behaviour
I would expect that running:
begin logout
begin login
Would generate a new access token, but it does not. Any begin command I execute after that still gives me the same error message. This includes begin tokens create that the user suspected they might be able us to fix the problem.
Steps to reproduce
I need to figure out how to get into the invalid access token state other than a really old config.json file I had for the staging API.
Platform version
MacOS 14.2.1
Begin version: main-21f0079
Node.js v18.15.0
The text was updated successfully, but these errors were encountered:
begin logout tries to destroy the current session's access token via the Begin API. This is great but it can fail if that current token is stale. If it fails, the CLI doesn't update the local config to remove that token. So you're stuck.
Instead, the CLI should attempt to delete its own access token and then always remove that token from the local config.
If that current token is already expired, another client can't use it anyway.
This issue was originally reported by
tiny_m
over on Discord, and I ran into it myself tonight as well.How does one tell the CLI to generate a new access token?
The only way I have found to be able to fix this issue is to remove ~/.begin/config.json and do a new
begin login
Expected behaviour
I would expect that running:
Would generate a new access token, but it does not. Any
begin
command I execute after that still gives me the same error message. This includesbegin tokens create
that the user suspected they might be able us to fix the problem.Steps to reproduce
Platform version
The text was updated successfully, but these errors were encountered: