Skip to content

Refresh expired JWT token for ACL access. #56

@danielmai

Description

@danielmai

When I run yarn && yarn test the bank.spec.ts test fails with this error about JWTs:

  ● bank › should successfully perform transaction load test

    16 UNAUTHENTICATED: unable to parse jwt token:Token is expired

dgraph-js should do the following like dgo and dgraph4j already do:

  • check if the JWT is expired in every request and, if the JWT is expired, request a new JWT using the refresh token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions