Automattic / Automattic/lasagna.js

Use browser Visibility API to smart refresh JWTs

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API

We should:

1. Detect tab select back to us.
2. Check JWT validity.
3. Refresh if needed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked MDN Page Visibility API documentation, then locate the existing JWT validity and refresh entry points. Verify that returning to the tab checks validity and refreshes only when needed; the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.