
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
- Failing to get user account after login ...
Running the attached integration test on Windows platform I get the following error. Any idea of what I'm doing wrong ? π Starting... 01:22 +0: Appwrite Authe...
- No access control allow origin -blocked ...
im not sure what exaclty im doing wrong - its my first time using appwrite - and im watching a tutorial about how to create a movie app and followed everything ...
- Number of Database Reads Bugged
My Appwrite project is generating a huge amount of database reads even when all my apps are closed and no one is using it. The reads counter keeps going up. (it...
