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 the Token Handler Pattern
An example showing how to use the Token Handler Pattern in an SPA

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

Node.js OAuth Agent
A Node.js and Express OAuth Agent that enables strong browser security for SPAs

Kotlin OAuth Agent
A Kotlin OAuth Agent that enables strong browser security for SPAs

.NET OAuth Agent
A .NET OAuth Agent that enables strong browser security for SPAs

Next.js OAuth Agent
An OAuth Agent that enables strong browser security for SPAs, implemented using Next.js

Financial-Grade OAuth Agent
An OAuth Agent that enables financial-grade security for SPAs

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