10 days ago
Generated token at account level - added token as environment variable named RAILWAY_TOKEN
Despite closing powershell and opening up a new powershell instance, railway whoami always returns invalid token.
3 Replies
10 days ago
Account-level tokens must be set as RAILWAY_API_TOKEN, not RAILWAY_TOKEN. The RAILWAY_TOKEN variable is reserved for project-level tokens. Renaming your environment variable to RAILWAY_API_TOKEN should resolve the issue.
Status changed to Awaiting User Response Railway • 10 days ago
10 days ago
Now it says RAILWAY_API_TOKEN is invalid
Status changed to Awaiting Railway Response Railway • 10 days ago
10 days ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 10 days ago
10 days ago
Hey , go back to railway.com/account/tokens and generate a new token, but this time make sure the workspace dropdown is left completely blank / set to "no workspace". if you selected any workspace (even your default one) when creating the token, it becomes a workspace-scoped token and railway whoami won't work with it so i think thats almost what's happening here