Single Page Apps
Code examples for creating OAuth clients for Single Page Applications, the token handler pattern, OAuth Agent, Assisted Token Flow and more.

SPA using Token Handler
An example showing how to use token handler components to harden your SPA security

Token Handler Deployment Example
Details of how the code example and its token handler is deployed

Javascript SPA using Assisted Token Flow
An example that uses the assisted token flow in a simple Javascript app.

Javascript SPA using OAuth Assistant Library
How to use the Curity OAuth Assistant available on npm in a Single Page Application

Javascript SPA using Code Flow + PKCE
A simple Javascript SPA sample using the code flow with PKCE

React SPA using Assisted Token Flow
An example that uses the assisted token flow in a React JS app.

Angular SPA using Assisted Token Flow
An example that uses the assisted token flow in an Angular app.

Hypermedia Authentication API React Demo
A React demo application using the Hypermedia Authentication API