Home / Companies / FusionAuth / Blog / Post Details
Content Deep Dive

Add extra security to your SPA with DPoP and FusionAuth

Blog post from FusionAuth

Post Details
Company
Date Published
Author
Bryan Robinson
Word Count
2,615
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

Frontend-only single-page applications face token-theft risks even when using secure transport and HttpOnly cookies, because stolen bearer tokens can be reused from another client. FusionAuth Enterprise supports Distributed Proof of Possession (DPoP), an OAuth 2.0 sender-constraining mechanism defined in RFC 9449 that binds tokens to a browser-generated key pair, requiring each request to include a signed proof tied to the request method, URI, time, and token. The tutorial demonstrates securing a React application with FusionAuth’s JavaScript SDK by configuring the provider, protecting routes through login-state checks, and adding login and logout controls through the SDK’s hook. Enabling DPoP requires setting `useDpop` in the provider configuration and updating FusionAuth CORS settings to allow the DPoP and authorization headers from the frontend origin. FusionAuth’s React, Vue, and Angular SDKs handle the underlying cryptographic proof generation and validation workflow, reducing the implementation effort while limiting the usefulness of stolen tokens unless an attacker also has the associated private key.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.