1 个仓库
Functions that execute during specific phases of the authentication and session lifecycle.
Distinct from State Lifecycle Callbacks: Specifically targets the authentication flow lifecycle rather than general state machine transitions.
Explore 1 awesome GitHub repository matching software engineering & architecture · Authentication Lifecycle Callbacks. Refine with filters or upvote what's useful.
该项目是用于在 Next.js 框架中管理用户身份验证和会话状态的参考实现与样板代码。它展示了如何集成 NextAuth.js 来保护路由并处理身份验证的实践案例。 该仓库演示了多种身份验证工作流,包括与第三方提供商的 OAuth 身份集成、使用电子邮件魔法链接的无密码身份验证,以及传统的基于凭据的登录。它特别展示了如何用自定义品牌登录页面替换默认的身份验证界面。 该实现涵盖了广泛的功能,包括通过适配器实现数据库会话持久化、访问令牌轮换,以及使用环境变量进行提供商配置。它还包含了将多种身份验证方法链接到单个用户配置文件的示例,并集成了用于记录身份验证事件的可观测性工具。
Provides hook functions to modify user profiles and session data during the authentication lifecycle.