Managing Multiple Identity Providers with Passport.js Strategies
Learn how to use the Strategy pattern in Passport.js to support multiple identity providers while maintaining a unified user session and secure database integration.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use the Strategy pattern in Passport.js to support multiple identity providers while maintaining a unified user session and secure database integration.
PKCE lets public clients like SPAs use the OAuth Authorization Code flow without a client secret.
Choose OAuth 2.0 Authorization Code Flow for user data and Client Credentials Flow for machine-to-machine access.
PKCE replaces the client secret with a per-request cryptographic challenge, making the Authorization Code Flow safe for single-page applications. Here's how it works, a minimal implementation, and the risks it doesn't solve.
PKCE binds the OAuth 2.0 authorization code flow to a client-generated verifier so public clients can redeem codes safely. Includes a Bash example, server validation steps, and limitations.
Learn how PKCE turns the OAuth 2.0 Authorization Code Grant into a safe flow for mobile and single-page apps, with a step-by-step example, trade-offs, and a quick checklist to get you started.
Learn how to add PKCE to OAuth 2.0 authorization code flow for SPAs and mobile apps, preventing authorization code interception with a per‑request verifier and challenge.
A practical task guide for implementing OAuth 2.0 Authorization Code with PKCE in public clients such as SPAs and mobile apps, covering prerequisites, the code exchange, validation checks, and recovery paths.
PKCE turns an intercepted authorization code into a dead end by binding it to a client-generated secret. Here is how the flow works, where enforcement still varies, and how to check your server.