#Google OAuth with railway?

17 messages · Page 1 of 1 (latest)

charred ledge
#

part of my project connects to the google calendar api which i need an oauth2 connection for and part of my token.json file, but the token seems to expire weekly and i have no idea how to fix it. it makes my app crash and then i have to delete the token.json file on my local machine and make a new git push to fix it. am i just missing something to make it not do that

plush talonBOT
#

Project ID: N/A

lone lark
#

oh god please don't put your Auth file onto github

charred ledge
#

its private repo

#

and im doing deploy via git

lone lark
#

you still shouldn't do that

charred ledge
#

i mean yeah fair

lone lark
#

how do your normally download a new Auth file?

charred ledge
#

the authenticate function just makes a new one after i log in with browser window

#

its just really annoying that the token expires

lone lark
#

how can it expire if the authentication function is making a new one?

charred ledge
#

i mean it only makes a new one if there isnt one in the project

lone lark
#

change it so it makes a new one if the old one is about to expire

charred ledge
#

yeah unfortunately i just dont know when it expires and i feel like it should be easy to change the authentication to make it last longer

lone lark
#

well you can look into that, it's not really railway specific

charred ledge
#

yeah ik, just was wondering if someone here did know.