This guide demonstrates how to integrate a browser based application with the Centrapay OAuth server using the oidc-client-js JavaScript library.
A good starting point for learning more about OIDC is Okta’s OAuth OIDC Illustrated Guide.
OIDC User Manager Configuration
Minimal OIDC Client Usage
Trigger Token Refresh
Manually trigger a token refresh when expired due to user being offline.
Detect OIDC User Refresh
Detect when OIDC user is refreshed via auto silent renew. The new user may have changed with updated claims, for example, if they have added an email address.