CLI not staying logged in

MMantisInABox3/27/2023
On a fresh OS install, and logging in to the Railway CLI, I could not initiate a new project. It said I needed to run railway login, so I did it again, and this was the results.
MMantisInABox3/27/2023
N/A
UUUnknown User3/27/2023
2 Messages Not Public
Sign In & Join Server To View
MMantisInABox3/27/2023
Where is it stored?
MMantisInABox3/27/2023
Nevermind. I found it.
MMantisInABox3/27/2023
It looks like it popped the token in there a second time! 😅
MMantisInABox3/27/2023
We are good now!
Bbrody3/27/2023
race condition when writing to the config file, neb is new to programming 🙂
MMantisInABox3/27/2023
Maybe we can add some logic checking, that if the login token is set, it doesn’t write a whole new set of lines, at the end of the file if you run the command again! Hahahaha
Bbrody3/27/2023
greg has already added atomic config file writes
MMantisInABox3/27/2023
Glad it was merged, now it needs to be released! 🤣🤣🤣
Bbrody3/27/2023
merged 5 days ago, last release was 3 days ago
Bbrody3/27/2023
latest ver 3.0.18
MMantisInABox3/27/2023
I installed it last night on a fresh os install, so, it be broken! 🤣🤣
Bbrody3/27/2023
did you manually fix the config file first?
MMantisInABox3/27/2023
That’s how I got it working after it broke
Bbrody3/27/2023
json is hard