I've updated my code snippet
this one
should store the user in localstorage then navigate to dashboard
not working
but it's fine
I will try to find other way
oauth2 requires cookies and your browser may be blocking cookies if the appwrite cookie is not a 1st party cookie. This is where custom domains comes in: https://appwrite.io/docs/custom-domains
Hey Steven thank God you are here 😁
I have created A record for the appwrite but don't have a cname record
Is this a problem for cookie ?
Because as I can see after successful Google auth login there are no cookies in local storage
long term, in production, local storage should not be used
the point is the front end and the endpoint the front end uses needs to share the same base/registerable domain
Then instead of local storage what should be used ?
cookies and it should be done automatically if everything is set up correctly
for email login cookies are generating automatically
but for google login it is not generating
actually i didn't get what you said . . . . . 😅
so if your frotned app is on example.com, the api endpoint that your frontend app uses must be *.example.com/v1
Yes
Then what ?
you said you didn't understand. I just explained
nothing else...appwrite automatically tries to set session cookies and browsers should automatically handle the session cookies
Ok
thanks buddy
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...