oauth
Use when a val needs to require login with a Val Town account — gating routes behind authentication, identifying the current user, building user-specific dashboards. Covers std/oauth's oauthMiddleware and getOAuthUserData, the auto-managed /auth/* routes, and session behavior. For third-party OAuth providers (Google, GitHub, etc.) see the third-party-integrations skill instead.
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.