Skip to main content
prompt GP ChatGPT

Authentication taste — ChatGPT prompt: what it does, how to install

Authentication taste — a prompt for ChatGPT, Claude.ai, and Claude Code that defines security standards for backend development. It guides agents in evaluating authentication architecture.

CC0-1.0 ★ 178,201 updated 2026-10-24

Open on GitHub

What Authentication taste does

This prompt provides a checklist for security assessments regarding authentication logic. It covers requirements for password hashing, session management, OAuth 2.1 implementation, and protection against vulnerabilities like account enumeration or session fixation.

The guidelines include best practices for JWT handling, WebAuthn integration, rate limiting, and secure logging. When used with Claude Code, the prompt assists in auditing existing codebases or reviewing new authentication modules against these security principles.

What it helps with

  • evaluate project authentication architecture
  • audit session and token implementation
  • identify vulnerabilities in login logic
  • configure secure password hashing

Example prompts for the agent

  • Analyze my authentication code using the Authentication taste rules.
  • Which Authentication taste principles are violated in this auth module?
  • Suggest improvements for the login module based on Authentication taste guidelines.

How to install Authentication taste

How to use

Paste the text at the start of a chat or into project instructions

Questions about Authentication taste

How to install Authentication taste in Claude Code?

Add the prompt content to the .claude/commands/prompts.csv.md file within your project directory.

What does Authentication taste do?

It provides a set of security rules for backend engineers, covering hashing, session management, and API protection.

Does this prompt require extra software?

No, it is a text prompt compatible with ChatGPT, Claude.ai, and Claude Code.

Source text

prompts.csv · CC0-1.0
# Authentication taste of a security-minded backend engineer
- Use a well-maintained auth library or provider instead of hand-rolling login, sessions and token handling. Confidence: 0.95
- Hash passwords with Argon2id, or bcrypt with a cost of at least 12, and never with a plain fast hash like SHA-256. Confidence: 0.95
- Prefer server-side sessions in HttpOnly, Secure, SameSite=Lax cookies for first-party web apps over JWTs in localStorage. Confidence: 0.90
- Use short-lived access tokens with rotating refresh tokens when you truly need stateless tokens for APIs or mobile clients. Confidence: 0.85
- Detect refresh token reuse and revoke the whole token family when it happens. Confidence: 0.85
- Regenerate the session ID on login, logout and privilege changes to prevent session fixation. Confidence: 0.95
- Offer passkeys (WebAuthn) as a first-class sign-in method, not only as a second factor. Confidence: 0.80
- Support TOTP or passkeys for MFA and treat SMS codes as a last-resort fallback. Confidence: 0.85
- Rate limit login, signup and password reset per account and per IP, with exponential backoff instead of hard permanent lockouts. Confidence: 0.90
- Return the same generic message for unknown email and wrong password so accounts cannot be enumerated. Confidence: 0.90
- Make password reset and magic link tokens single-use, random, hashed at rest and expiring within 15 to 60 minutes. Confidence: 0.95
- Check passwords against known breached lists and drop arbitrary composition rules like "one symbol required". Confidence: 0.85
- Use OAuth 2.1 Authorization Code with PKCE for every client, and never the implicit flow. Confidence: 0.95
- Validate the state and nonce parameters on every OAuth and OIDC callback. Confidence: 0.95
- Link social logins to existing accounts only after the provider returns a verified email. Confidence: 0.90
- Keep authentication (who you are) separate from authorization (what you can do) and check permissions on the server for every request. Confidence: 0.95
- Re-ask for credentials or a passkey before sensitive actions like changing email, password or payout details. Confidence: 0.85
- Notify users by email on new device sign-ins, password changes and MFA changes. Confidence: 0.80
- Let users see and revoke their active sessions from account settings. Confidence: 0.80
- Log auth events with user ID, IP and user agent, but never log passwords, tokens or reset links. Confidence: 0.95
- Protect cookie-based state-changing requests with SameSite cookies plus CSRF tokens or Origin header checks. Confidence: 0.90
- Store signing keys in a secrets manager and support key rotation with a kid header from day one. Confidence: 0.85
- Write integration tests for the unhappy paths: expired tokens, revoked sessions, replayed links and wrong tenants. Confidence: 0.85

© f · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Security →

From the same set218

The whole set →
Flutter App taste Flutter App taste — a prompt for ChatGPT that defines architectural standards for cross-platform mobile apps on Flutter. Used when structuring codebases and setting up projects. GP ChatGPT ★ 178,201repo stars Webhook Integration taste The Webhook Integration taste ChatGPT prompt sets rules for reliable webhook integrations. It covers event intake, processing, and delivery to customer endpoints. GP ChatGPT ★ 178,201repo stars Browser Extension taste Browser Extension taste — a prompt for ChatGPT and Claude Code defines best practices for building cross-browser extensions on Manifest V3. It guides the AI when designing extension architecture. GP ChatGPT ★ 178,201repo stars Rails App taste Rails App taste is a prompt for ChatGPT, Claude.ai, and Claude Code that sets pragmatic Ruby on Rails development standards. Use it before starting an app or planning its architecture. GP ChatGPT ★ 178,201repo stars Realtime WebSocket taste Realtime WebSocket taste — a prompt for ChatGPT with engineering guidance for real-time WebSocket systems. It covers transport choices, connection security, reconnects, and message delivery. GP ChatGPT ★ 178,201repo stars Serverless Functions taste Serverless Functions taste — a prompt for ChatGPT and Claude Code defines design rules for serverless functions to cut cold starts and optimize database connections. GP ChatGPT ★ 178,201repo stars SvelteKit App taste The SvelteKit App taste ChatGPT prompt sets development conventions for SvelteKit apps. It covers project setup, data loading, forms, and testing. GP ChatGPT ★ 178,201repo stars Tauri Desktop App taste Tauri Desktop App taste — a prompt for ChatGPT that sets engineering practices for cross-platform Tauri apps. It covers Rust commands, UI boundaries, security, testing, and release builds. GP ChatGPT ★ 178,201repo stars

Project sponsors

Companies that keep this analytics open