Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host: Add JWT refetch for sessionRoom property #2062

Merged
merged 6 commits into from
Jan 22, 2025

Conversation

backspace
Copy link
Contributor

This detects the absence of #2058’s new sessionRoom property in a realm JWT and triggers a refetch.

I deployed this to production where I had existing JWTs with no sessionRoom and the new JWTs had it:

Boxel 2025-01-20 15-58-41 JSON Web Tokens - jwt io 2025-01-20 15-59-17

Copy link

github-actions bot commented Jan 20, 2025

Host Test Results

    1 files  ±0      1 suites  ±0   21m 2s ⏱️ - 1m 30s
733 tests +2  731 ✔️ +2  2 💤 ±0  0 ±0 
738 runs  +2  736 ✔️ +2  2 💤 ±0  0 ±0 

Results for commit fe08815. ± Comparison against base commit a246bac.

♻️ This comment has been updated with latest results.

@@ -90,6 +90,7 @@ export class MockClient implements ExtendedClient {
exp: expires,
user: this.loggedInAs,
realm: realmURL.href,
sessionRoom: `test-session-room-for-${this.loggedInAs}`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should have been in #2058 😯

@backspace backspace requested a review from a team January 21, 2025 14:44
@backspace backspace marked this pull request as ready for review January 21, 2025 21:29
@backspace backspace merged commit 9939a22 into main Jan 22, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants