Moved from GitHub dgraph-js/56
Posted by 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.