Back

JWT secrets

  • 1
  • Self Hosted
  • Users
Arkany
27 May, 2023, 09:49

Where can I find the secret to verify a JWT token ?

TL;DR
The user is asking where they can find the secret to verify a JWT token. Another user suggests using SSR (Server-Side Rendering) and provides a link to the Remix SSR library. However, the user believes that it would have been useful to mix several backends. Another user suggests accessing secret fields on the session table in MariaDB by providing a JSON example. However, it is mentioned that you cannot access the secret via API as Appwrite validates JWT on its own.
Bouahaza
27 May, 2023, 10:12

Thinks that you can't via API, appwrite validate JWT on his own

Bouahaza
27 May, 2023, 10:13

If you can access MariaDB, you can access secret fields on session table, like

TypeScript
{
    "data": "cI3VEjVgLn4X9fTZ9fqQtHuSLZkV6UrtEuxoA8AMS/8Q4LesSJistkag8fjYwtRXGhDnCUSgMj+SbkoyYJXq1g==",
    "method": "aes-128-gcm",
    "iv": "ddc5a356a6f7fcc67566db4c",
    "tag": "17d14e16609d19c82d591413109ab076",
    "version": "1"
}
Arkany
27 May, 2023, 10:45

Ok, thanks. What a pity this could have been very useful to mix several backend.

Bouahaza
27 May, 2023, 10:55

You can use SSR perhaps ? Core team maintain : https://remix.ssr.almostapps.eu/

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