You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support For Verifying JWT Token using the Server API #511
I can extract the token from the x-fallback-cookie in headers for the client, but there's no way to validate these access tokens in the node sdk. If you allow the node-appwrite getSessions query to include each sessions access token, one could authenticate custom endpoints through our own backends and still use the same authentication platform through appwrite.
A common pattern I use when developing backends is to create a proxy graphql server as an abstraction for every service available. When doing this, I don't want to roll my own authentication each time as it's a liability, but I want to abstract it in case I need to switch auth providers in the future. Firebase allows you to verify tokens using their node sdk and thus check the token being passed by the user in the headers.
Let me know if this makes sense, if you want further clarification, or if I'm missing something here.
I always wanted to have this JWT auth in addition to cookie based auth. Its way easier to manage the JWT token from Local Storage. I am excited to learn that it is being implemented. Moreover, its equally secure as cookie based auth.
Activity
[-]Support For Token Based Authentication[/-][+]Support For Verifying Token In Node SDK[/+]ereio commentedon Aug 23, 2020
Here's a link to the equivalent in firebase: https://firebase.google.com/docs/auth/admin/verify-id-tokens
eldadfux commentedon Aug 24, 2020
@ereio Would a JWT implementation (https://jwt.io/) in the Appwrite users/account APIs help you accomplish this use case?
ereio commentedon Aug 24, 2020
yes, that would be great
[-]Support For Verifying Token In Node SDK[/-][+]Support For Verifying JWT Token using the Server API[/+]eldadfux commentedon Aug 24, 2020
Added this feature request to our roadmap
punitdiwan commentedon Aug 25, 2020
I always wanted to have this JWT auth in addition to cookie based auth. Its way easier to manage the JWT token from Local Storage. I am excited to learn that it is being implemented. Moreover, its equally secure as cookie based auth.
eldadfux commentedon Dec 29, 2020
JWT draft PR is ready: https://github.com/appwrite/appwrite/pull/784/files 🎉
eldadfux commentedon Feb 13, 2021
JWT is available in a closed beta, if anyone wants to try it please reach me on Discord.
TorstenDittmann commentedon May 19, 2021
This got fixed with https://github.com/appwrite/appwrite/releases/tag/0.8.0 👏🏻
jdub113113 commentedon Jun 16, 2021
Help me
jdub113113 commentedon Jun 16, 2021
[email protected]
Merge pull request appwrite#511 from appwrite/feat/console-user-photo…