brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
oauth2-oidcAssists with implementing OAuth 2.0 and OpenID Connect for secure authentication and authorization. Use when configuring authorization flows, validating tokens, implementing PKCE for public clients, setting up social login, or building secure token handling for SPAs, mobile apps, and APIs. Trigger words: oauth, oidc, openid connect, authorization code, pkce…
Independent GitHub snapshot · Automated classification · Original documentation governs
OAuth 2.0 is the industry standard for API authorization, and OpenID Connect (OIDC) extends it for user authentication. Together they provide Authorization Code + PKCE for secure token exchange, JWT-based identity tokens, refresh token rotation, and integration with identity providers (Auth0, Okta, Keycloak, Google, Azure AD) for social login and enterprise SSO.
exp, iss, and aud claims, and never trust client-side token validation alone.httpOnly, secure, sameSite=lax cookies; never store tokens in localStorage since it is vulnerable to XSS./.well-known/openid-configuration) for auto-configuration rather than hardcoding endpoints.User request: "Implement Google and GitHub login for my Next.js app using OAuth 2.0"
Actions:
Output: A Next.js app with secure social login via Google and GitHub, PKCE-protected token exchange, and httpOnly cookie sessions.
User request: "Add OAuth 2.0 token validation to my API endpoints"
Actions:
Output: An API with JWT-based authorization that validates tokens against the provider's JWKS and enforces scope-based access control.
exp, iss, and aud; never trust client-side validation alone.httpOnly, secure, sameSite=lax cookies for token storage in web apps, not localStorage.openid email for login, not all available scopes.