FormidableLabs / FormidableLabs/react-native-app-auth

Feature request: Automatic renew

Open
#69 2 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

Hi, I've got another idea working with the lib the other day.

What do you think about adding ability to do automatic renew?
The way I see it working would be a method called something like automaticRefresh that would accept config (like normal refresh) plus existing token response (to know expiration) plus a callback that fires on refresh.

I think it's pretty straight forward, let me know what you think ;)

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by reviewing the React Native bridge and its AppAuth refresh flow, then determine how a proposed automaticRefresh method could use refresh configuration, an existing token response, and a refresh callback. Done should include an agreed design and behavior for automatic renewal.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
authentication, mobile
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.