View as .md

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 UserManager with authority, client_id, redirect_uri, and scope
  • Hardware attestation claims (hardware_verified, hardware_aaguid) are in the access token JWT — decode with atob(token.split('.')[1]) after base64url character replacement
  • State persistence uses sessionStorage by default via WebStorageStateStore

Example

spa/vue — Complete working example with oidc-client-ts UserManager, PKCE, and hardware claim extraction.