Spezi 账户

Build and Test codecov DOI

Spezi 框架,提供与账户相关的功能,包括登录、注册和密码重置。

概述

SpeziAccount 框架完全抽象了 Spezi 框架生态系统的用户账户功能的设置和管理。

Screenshot displaying the account setup view with an email and password prompt and a Sign In with Apple button. Screenshot displaying the account setup view with an email and password prompt and a Sign In with Apple button. Screenshot displaying the Signup Form for Account setup. Screenshot displaying the Signup Form for Account setup. Screenshot displaying the Account Overview. Screenshot displaying the Account Overview.
AccountSetup 是账户引导的核心视图,方便账户登录和创建。 SignupForm 默认由基于电子邮件-密码的 AccountServices 使用。 AccountOverview 用于查看和修改当前关联账户的用户详细信息。

AccountSetupAccountOverview 视图是 SpeziAccount 的核心。您可以在视图中使用 AccountDetails 集合来可视化关联用户账户的账户信息。

AccountService 为管理不同类型的账户管理服务提供了一个抽象层(例如,基于电子邮件地址和密码的服务与身份提供商(如 Apple 登录)相结合)。

更多信息,请参考 API 文档

注意

SpeziFirebase 框架提供了 FirebaseAccountService,您可以使用它来配置基于 Google Firebase 服务的 Account Service。

设置

您需要在 Xcode 中的应用程序Swift 包 中添加 Spezi Account Swift 包。

重要

如果您的应用程序尚未配置为使用 Spezi,请按照 Spezi 设置文章 来设置核心 Spezi 基础设施。

初始设置 文章提供了一个快速入门指南,用于在您的应用程序中设置 SpeziAccount。如果您计划实现自己的 Account Service,请参考 实现 Account Service 文章。

Spezi 模板应用程序 提供了一个很好的起点和示例,使用了 Spezi Account 模块。

贡献

欢迎您对本项目做出贡献。请务必先阅读 贡献指南贡献者盟约行为准则

许可

本项目基于 MIT 许可。更多信息请参考 许可证

Spezi Footer Spezi Footer