https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
b

bitter-arm-6486

01/04/2022, 8:21 PM
Hi, does anyone have suggestions as to how to find out if the user is hitting the settings flow for the FIRST time after logging in? The use case is that I'd like to set the site language based on user trait, but only if it's immediately after logging in. Otherwise if users change locale on the site they would be reset to their original preference after every refresh which isn't desirable
s

stocky-pager-63161

01/04/2022, 8:28 PM
my only (not elegant) idea is to use a cookie
m

magnificent-energy-493

01/05/2022, 11:18 AM
What is the problem with a cookie in this instance? /just for my own understanding 🙂
b

bitter-arm-6486

01/05/2022, 2:12 PM
Persists across browser sessions
Whereas first login should be only persist across user session
I think using local storage is a good workaround for this. Will post my solution
5 Views