railwayapp / cli

Railway CLI
https://railway.app
MIT License
321 stars 83 forks source link

only shortcircuit the login command if the RAILWAY_API_TOKEN is found #569

Closed coffee-cup closed 3 weeks ago

coffee-cup commented 3 weeks ago

This fixes a bug where if you have an invalid auth token, you will not be able to re login without running railway logout first. We only want to use the existing authenticated client if the RAILWAY_API_TOKEN variable is set.