deep-foundation / deep-foundation/deeplinks

jwt tokens are not updated in handleRoute

Open
#222 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

jwt is received at the time of handleRoute initialization, not at the time of request. Because of this, when the jwt changes, it remains old in handleRoute.
![image](https://github.com/deep-foundation/deeplinks/assets/26022251/008952c8-4815-4c23-8583-ee26210a2819)

### Expected Behavior

Don't change jwt tokens or get jwt on every request

### Current Behavior

Jwt tokens are received once and they change when rights are changed

### Steps to reproduce

1. Create handleRoute
2. Add join is package to admin
3. Make a request for handleRoute

### Environment

```shell
gitpod
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.