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
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- My account got banned without obvious re...
Hello, I’m a normal user of Appwrite. Today I found my account was banned suddenly, and I can’t log in normally. I have only been doing normal development and...