I am having a react vite web app (CSR), I want to show a welcome card or interface for the first time login only for a user. I am using a local flag for the first time login, while it is working with password and OTP authentication, I am not clear how implement this in case of Google oauth. Any idea how can I deal with that.
how is it any different?
In case of register, it is being called only once, so I am using a flag there, in case of email OTP, we don't have user name in case of a new user, so I've included a flow to add name, after adding, I am using the same flag which will be set to true once only same as register. But in case of oauth, the same function will be called for sign in and log in, hence unable to find a way to implement it. Maybe I'm Missing something.
if you're using a local flag, you can set the flag to true once you show the welcome card. then, next time they log in or whatever, the flag is set to true so don't show it
doesn't matter how they log in
if you don't want to store on device, you can use account preferences and do the same thing
But in case of a different device it won't work
This I can try
then use account preferences
Let me work with that
Thanks, I'll give it a try
Recommended threads
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- how can i make a relationship between a ...
i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user... how can i have exactly the s...