langflow icon indicating copy to clipboard operation
langflow copied to clipboard

refactor: Update package dependencies and add jwt-decode library

Open deon-sanchez opened this issue 1 year ago • 0 comments

📝 Description

This pull request includes several changes to the frontend package dependencies and introduces a new custom token refresh hook. The most important changes are the addition of the jwt-decode package, the implementation of the useCustomTokenRefresh hook, and its integration into the AuthProvider component.

Dependency Updates:

  • Added jwt-decode package to package.json and package-lock.json to handle JWT token decoding. [1] [2] [3]

New Feature:

  • Implemented useCustomTokenRefresh hook in src/frontend/src/customization/hooks/use-custom-token-refresh.ts to handle automatic token refresh based on expiration time.

Integration:

  • Integrated useCustomTokenRefresh hook into AuthProvider component to ensure tokens are refreshed periodically. [1] [2]

deon-sanchez avatar Dec 04 '24 16:12 deon-sanchez