
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
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- 500 internal error
I get a 500 internal error when trying to access my database on appwrite cloud. Sometimes it would start working but this time it never corrects.
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
