Hi, does anyone have suggestions as to how to find...
# talk-kratos
b
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
my only (not elegant) idea is to use a cookie
m
What is the problem with a cookie in this instance? /just for my own understanding 🙂
b
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