Back

Long lived JWT

  • 0
  • Apple
jonericcook
28 Jan, 2024, 00:50

I see here that if I create a JWT it will only live for 15 minutes. https://appwrite.io/docs/references/cloud/client-apple/account#createJWT

My app will be used offline for up to 12 hours and I need to be able to allow the user to still use it even if they can't be online.

My idea would be to have the user sign in and then set a token for a day or two and then once it expires lock them out and force them to sign back in.

I'm definately open to any ideas on how to achieve my goal.

TL;DR
Developers are concerned that the JWT created using the Appwrite library will only live for 15 minutes. They need a solution to allow users to use the app offline for up to 12 hours. One suggested idea is to have users sign in and set a token for a day or two before expiring it, at which point they would have to sign in again.
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