Railway tokens are always invalid
nguyenlossratio
PROOP

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.

$20 Bounty

3 Replies

Railway
BOT

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


nguyenlossratio
PROOP

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


andrewkat52
FREE

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...