Skip to content

Authentication and sessions

How users prove who they are and how an application keeps them signed in: identity providers, OAuth 2.0 and OpenID Connect, sessions and tokens in browser apps, passwords, multi-factor authentication, passkeys and account recovery. What a signed-in user may do (authorization, SEC-1), secrets and security logging are covered in Security. For Next.js apps, also follow Next.js.

Entries are sorted by score from 1 to 10 (criteria): 9โ€“10 start here or strongly recommended, 6โ€“8 recommended, 1โ€“5 further reading or conditional.

Adopted references

Key rules

Identity providers and protocols

Sessions

Passwords and multi-factor authentication

Account recovery

How to enforce

Tools that check the key rules above automatically, in CI, the IDE or a commit hook. "Partly" means the tool covers only some of what the rule asks.

Tutorials and further reading

  • 7 Passkeys developer guide (Google for Developers): creating passkeys, signing in with passkey autofill, managing passkeys, and a checklist.
  • 6 Bootstrapping an account on the web (passkeys.dev): adding passkeys to an existing sign-in form, with autofill and the step that offers users a passkey after they sign in.