capacitor-community / capacitor-community/generic-oauth2

Silently refresh token in pwa

Open
#65 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement web
Dominant language
Java
Stars
281
Forks
129
PR merge metrics
No merged PRs in 30d

Description

This is the task for implementing the refresh feature for PWA/Web. I sum up the relevant information from @dennisameling below.

Implicit flow (for now, see this article by Auth0 for details as to why it's still not considered safe to store a refresh token from the implicit flow in the browser). See #59

If we were to use the implicit flow for refreshing tokens, it would involve creating an iFrame to refresh the token without user interaction. The angular-oauth2-oidc library also uses iFrames for refreshing tokens, so we could take inspiration from that. See #60

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the PWA/Web token flow described here and the related context in issues #59 and #60. Compare the proposed implicit-flow iframe approach with angular-oauth2-oidc; done means tokens refresh silently without user interaction while preserving the stated browser security constraints.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, java
Domain
authentication, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.