Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

feat: update auth provider to not refresh token every 2 minutes#50

Merged
RMCampos merged 1 commit into
mainfrom
feat/drop-refresh-token-logic
May 13, 2026
Merged

feat: update auth provider to not refresh token every 2 minutes#50
RMCampos merged 1 commit into
mainfrom
feat/drop-refresh-token-logic

Conversation

@RMCampos

Copy link
Copy Markdown
Owner

This pull request removes the logic for periodically refreshing the user session token in the AuthProvider component. The code responsible for setting up and clearing an interval to refresh the token every two minutes has been deleted, simplifying the authentication context.

Authentication session management:

  • Removed the intervalInstance state and related logic for setting up a periodic token refresh using setInterval, including the refreshTokenPvt function and the associated useEffect hook. Now, the user session will no longer be automatically refreshed at regular intervals. [1] [2]
  • Cleaned up the logout process by removing interval cleanup logic, as it is no longer needed.

@RMCampos RMCampos self-assigned this May 13, 2026
@RMCampos RMCampos merged commit 4a13718 into main May 13, 2026
2 checks passed
@RMCampos RMCampos deleted the feat/drop-refresh-token-logic branch May 13, 2026 18:08
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.

1 participant