OpenID Connect for React SPAs

OpenID Connect for React SPAs

Code and documents describing how to implement an OAuth client for a React SPA

Security Libraries

Curity Express Token Handler

An implementation of the Token Handler Pattern that can be deployed as a Docker container

Curity OAuth Assistant

A Curity library for implementing the Assisted Token Flow and SPA session management

oidc client

A library for implementing the Code Flow (PKCE) and SPA session management

Code Examples

SPA using the Token Handler Pattern

SPA using the Token Handler Pattern

A code example showing how to implement the Token Handler Pattern in an SPA

Read more
React SPA using Assisted Token Flow

React SPA using Assisted Token Flow

An example that uses the assisted token flow in a React JS app.

Read more

How-tos

Token Handler End-to-End Tutorial

Token Handler End-to-End Tutorial

How to run an end-to-end example that secures an SPA using SameSite cookies.

Read more

Learn

The Token Handler Pattern for Single Page Applications

The Token Handler Pattern for Single Page Applications

Learn how the Token Handler design pattern strengthens the security of your Single Page Applications and improves user experience.

Read more
Best Practices - OAuth for Single Page Applications

Best Practices - OAuth for Single Page Applications

Learn how to use OAuth to secure your Single Page Applications.

Read more