P
ProductiviteIntermediateAll AIs

Implement OAuth 2.0 Authentication

Integrate authentication via an OAuth provider

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Implement the OAuth 2.0 flow with [Google/GitHub/other] in a [FRAMEWORK] app. Cover both flows: Authorization Code (web) and PKCE (mobile/SPA). Include: provider configuration, callback routes, secure token storage, automatic refresh, logout handling, and security best practices (state parameter, PKCE challenge).

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Use Cases

Integrate authentication via an OAuth provider

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour un gain de temps, utilise une librairie dédiée (Passport.js, Spring Security OAuth2). Ne stocke jamais le client secret côté front : seul le backend doit le connaître. Ajoute un mécanisme de rotation des refresh tokens et vérifie toujours le `state` côté serveur pour éviter les attaques CSRF.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

ProductiviteAdvancedAll AIs

Headlines (Counter-Intuitive Angle)

Differentiation, saturated markets

0111
ProductiviteAdvancedAll AIs

Forecast key evolutions in your sector

Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.

208386
ProductiviteIntermediateAll AIs

Bootstrap and Confidence Intervals

Estimating metric uncertainty

097
ProductiviteAdvancedAll AIs

Incident Communication Protocol

Managing crisis communication in a school setting

0113