Skip to content

Support For Verifying JWT Token using the Server API #511

Closed

Description

@ereio

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.

Thanks for all your hard work!

Activity

  1. changed the title [-]Support For Token Based Authentication[/-] [+]Support For Verifying Token In Node SDK[/+] on Aug 23, 2020
  2. eldadfux commented on Aug 24, 2020

    @eldadfux
    Member

    @ereio Would a JWT implementation (https://jwt.io/) in the Appwrite users/account APIs help you accomplish this use case?

  3. added
    enhancement
    on Aug 24, 2020
  4. ereio commented on Aug 24, 2020

    @ereio
    Author

    yes, that would be great

  5. changed the title [-]Support For Verifying Token In Node SDK[/-] [+]Support For Verifying JWT Token using the Server API[/+] on Aug 24, 2020
  6. eldadfux commented on Aug 24, 2020

    @eldadfux
    Member

    Added this feature request to our roadmap

  7. punitdiwan commented on Aug 25, 2020

    @punitdiwan

    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.

  8. added
    backlog
    on Sep 10, 2020
  9. eldadfux commented on Dec 29, 2020

    @eldadfux
    Member
  10. eldadfux commented on Feb 13, 2021

    @eldadfux
    Member

    JWT is available in a closed beta, if anyone wants to try it please reach me on Discord.

  11. added
    waiting for release
    on Mar 20, 2021
  12. jdub113113 commented on Jun 16, 2021

    @jdub113113

    Help me

  13. jdub113113 commented on Jun 16, 2021

    @jdub113113
  14. removed
    waiting for release
    on Jun 22, 2021
  15. added a commit that references this issue on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions