Comments (4)
You could use
import { OidcClient } from '@axa-fr/oidc-client';
await getOidc().renewTokensAsync();
from oidc-client.
The librairy refresh tokens automaticaly in background.
The clean way to use it is here: https://github.com/AxaFrance/oidc-client/blob/main/packages/oidc-client/src/fetch.ts
like @meesvandongen said upper, you can use directly @axa-fr/oidc-client.
from oidc-client.
Hi, using @axa-fr/oidc-client would mean I'd have to unnecessarily create a wrapper that is already provided by @axa-fr/react-oidc. Is it possible to use both packages in the project simultaneously?
from oidc-client.
Yes it is possible @MichalJana
from oidc-client.
Related Issues (20)
- Passing extras like client_Secret in revoke(logout) call: service worker enabled HOT 1
- Await Logout till endSession is complete in logout HOT 17
- Cleanup missing : Toggling between service worker & non-service worker HOT 6
- Error TypeError: Failed to fetch with startKeepAliveServiceWorker HOT 2
- Need way to debug the packages when running examples HOT 6
- It will be grate to have working example with https://goauthentik.io/ HOT 1
- Validation of service worker approch against new draft from ietf.org HOT 2
- syncTokensInfoAsync inside RenewToken does not work correctly HOT 2
- multiple parallel silent signin: iframes are not removed before timeout
- Clear OidcServiceWorker cache every build HOT 7
- After restarting IIS(OIDC Server), I receive an error as State not valid HOT 5
- userinfo endpoint + port + service worker does not forward access token HOT 1
- Need to modify ath value in dpop payload HOT 13
- Modify configuration from react HOT 9
- authorization endpoint - response_mode parameter HOT 4
- Issue with React-oidc: Endless "Redirecting" Message and Failure to Redirect to Homepage after Token Expiry HOT 2
- Something changed while fetching userinfo between 2 versions. HOT 8
- How to write Unit Tests with Oidc-client Provider. How to mock it? HOT 3
- Warning about incompatibility with future version of Vite (v6.0) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oidc-client.