Back

cookieFallback params

  • 1
  • Self Hosted
  • Accounts
  • Web
  • Cloud
otik
19 Jul, 2023, 09:53

Hi, i make app with appwrite and i have logging via my node.js server. Always when i log into my account server returns me tokens into cookies and one token into my localstorage. But when i have that token in localstorage it does not work with appwrite => user is not loged in. On the picture you can see what does the token in localstorage look like. Do i have to have a different format of that?

TL;DR
The user is experiencing an issue with logging in to their app using Appwrite. They mention that when they log into their account, the server returns tokens stored in cookies and local storage. However, when the token is stored in local storage, the user is not logged in to Appwrite. They are wondering if the format of the token in local storage needs to be different.
joeyouss
19 Jul, 2023, 10:42

Hey, If you have your own auth flow, please ensure to set the session secret as header when initializing client SDK (or server SDK). example: https://github.com/Meldiron/appwrite-ssr-svelte-kit/blob/main/src/lib/AppwriteService.ts#L25-L29

otik
19 Jul, 2023, 11:10

Thank you very much

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more