Is there anyway to configure a longer token expiry...
# prefect-cloud
b
Is there anyway to configure a longer token expiry when logged in to the cloud UI? I'm finding myself having to send a password about 5 times a day.
upvote 1
k
Hi @Ben Muller, the login token should be active for 7 days and should continue to automatically refresh when your logged in. Do you have something that is automatically clearing cache and cookies in your browser or network?
b
I use brave browser ?
c
I’m authenticating via google and have been booted out at least three times today. I don’t have any issues staying logged-in to other sites. Using Safari.
k
Ah ok I'm getting some clarification from our engineers. It looks like the session expires after 2 hours of last token fetched which means if you don’t have the app open and active you will be logged out 2 hours after the last time you were using the app.
b
My tab is open, but it still boots me. Not ideal. No way to customise that or its a hard limit?
Definitely happens under 2 hours sometimes btw.
k
It sounds like most browsers do quite a bit of memory management in the background for you and can have their own definitions of “active”. depending on the browser, the process or workers that we use to maintain token freshness may or may not be running if you’re not actively using the app. that’s the reason when you come back to a tab after a long time it’ll “refresh” the page. We're looking into ways to customize this but right now theres not an option 😞
1
b
One thing that could be awesome to mitigate this issue ( if possible ) would be if we could enter a command in the CLI ( which is forever authenticated ) and it launches a browser with a token.
m
I am being horribly inconvenienced by this change as well. I used to have to log in once daily and now it seems like I have to do it every half hour or so if I'm not actively clicking in Prefect UI every minute. I'm on Firefox.
💯 1
gratitude thank you 1
I had to do six magic links through the course of a working day yesterday:
a
We're looking into ways to customize this
@Kalise Richmond is there a GitHub issue we could collect info and send to people for tracking?
k
We're looking into this currently but there is no GitHub issue
j
This should be fixed now. 🙂
🙌 1
gratitude thank you 1
❤️ 1
b
Hey @Jeff Hale, has something recently changed with this? I'm facing similar issues again. Been logged out 3 times in an hour.
j
Not that I know of. I'll check.
🙌 1
I've raised internally and the team will be investigating further.
b
Thank you