Vue (oidc-client-ts)
See the Applications overview for prerequisites, configuration endpoints, and available scopes.
oidc-client-ts provides a UserManager for managing the OIDC lifecycle in Vue applications. Key configuration:
- No client secret needed (public client with PKCE, enabled by default)
- Vouch does not issue refresh tokens — redirect the user to sign in again when the token expires
- Configure
UserManagerwithauthority,client_id,redirect_uri, andscope - Hardware attestation claims (
hardware_verified,hardware_aaguid) are in the access token JWT — decode withatob(token.split('.')[1])after base64url character replacement - State persistence uses
sessionStorageby default viaWebStorageStateStore
Example
spa/vue — Complete working example with oidc-client-ts UserManager, PKCE, and hardware claim extraction.