Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Comments

[Do not merge] Add JWT using PoW#2514

Open
agusaldasoro wants to merge 9 commits intomasterfrom
feat/add-jwt-cookie
Open

[Do not merge] Add JWT using PoW#2514
agusaldasoro wants to merge 9 commits intomasterfrom
feat/add-jwt-cookie

Conversation

@agusaldasoro
Copy link
Contributor

@agusaldasoro agusaldasoro commented Jul 28, 2021

Added code to fetch the cookie with the JWT after implementing Proof of Work every time the realm is changed (this includes start-up).

This PR doesn't include the changes to send the JWT cookie on every request to the Catalyst, as we need to deploy the Catalyst version that handles Cors with origin first.

This PR is blocked to merge until the release of the Catalyst that handles cors with dynamic origin is deployed.

@github-actions
Copy link

After the CI passes:

currentRealm = getRealm(store.getState())
if (currentRealm && !deepEqual(previousRealm, currentRealm)) {
onRealmChange(previousRealm, currentRealm)
await getJWT(currentRealm)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to add this as a subscriptor instead of directly adding it in this method?

@agusaldasoro agusaldasoro changed the title Add JWT using PoW [Do not merge] Add JWT using PoW Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants