Rank 2: Process
I've updated my code snippet
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
I've updated my code snippet
Rank 2: Process
this one
Rank 2: Process
should store the user in localstorage then navigate to dashboard
Rank 2: Process
not working
Rank 2: Process
but it's fine
Rank 2: Process
I will try to find other way
Admin
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
Rank 2: Process
Hey Steven thank God you are here 😁
Rank 2: Process
I have created A record for the appwrite but don't have a cname record
Rank 2: Process
Is this a problem for cookie ?
Rank 2: Process
Because as I can see after successful Google auth login there are no cookies in local storage
Admin
long term, in production, local storage should not be used
Admin
the point is the front end and the endpoint the front end uses needs to share the same base/registerable domain
Rank 2: Process
Then instead of local storage what should be used ?
Admin
cookies and it should be done automatically if everything is set up correctly
Rank 2: Process
for email login cookies are generating automatically
Rank 2: Process
but for google login it is not generating
Rank 2: Process
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
Rank 2: Process
Yes
Rank 2: Process
Then what ?
you said you didn't understand. I just explained
Admin
nothing else...appwrite automatically tries to set session cookies and browsers should automatically handle the session cookies
Rank 2: Process
Ok
Rank 2: Process
thanks buddy