diff --git a/src/content/docs/zh-cn/guides/authentication.mdx b/src/content/docs/zh-cn/guides/authentication.mdx index 63fb4b4c8bbbc..f5723483fa907 100644 --- a/src/content/docs/zh-cn/guides/authentication.mdx +++ b/src/content/docs/zh-cn/guides/authentication.mdx @@ -12,7 +12,7 @@ import ReadMore from '~/components/ReadMore.astro' 认证允许你为登录的个人定制你的网站的特定区域,并为个人或私人信息提供最大程度的保护。认证库(例如 [Lucia Auth](https://lucia-auth.com/)、[Auth.js](https://authjs.dev/))为多种认证方法提供了实用工具,如电子邮件登录和 OAuth 提供商。 :::tip -Astro 没有官方的认证解决方案,但你可以在集成目录中找到 [社区的 “auth” 集成](https://astro.build/integrations/?search=auth)。 +Astro 没有官方的认证解决方案,但你可以在集成目录中找到 [社区的“auth”集成](https://astro.build/integrations/?search=auth)。 ::: 查看我们的专门指南,了解如何 [使用 Supabase 添加认证](/zh-cn/guides/backend/supabase/#使用-supabase-添加身份验证) 或 [使用 Firebase 添加认证](/zh-cn/guides/backend/google-firebase/#使用-firebase-添加身份验证),以获取这些后端服务的详细信息。 @@ -45,12 +45,12 @@ Lucia 是一个与框架无关、基于会话的认证库,对 Astro 支持良 ### 配置 -使用 [Lucia 的 “Astro 入门”](https://lucia-auth.com/getting-started/astro) 指南来初始化 Lucia 并配置一个适配器,设置一个数据库来存储用户和会话信息。 +使用 [Lucia 的“Astro 入门”](https://lucia-auth.com/getting-started/astro) 指南来初始化 Lucia 并配置一个适配器,设置一个数据库来存储用户和会话信息。 ### 使用方法 :::tip -遵循 Lucia 的完整 Astro 教程之一,向你的 Astro 项目添加 [用户名和密码认证](https://lucia-auth.com/tutorials/username-and-password/astro) 或 [GitHub OAuth](https://lucia-auth.com/tutorials/username-and-password/astro)。 +遵循 Lucia 的完整 Astro 教程之一,向你的 Astro 项目添加 [用户名和密码认证](https://lucia-auth.com/tutorials/username-and-password/astro) 或 [GitHub OAuth](https://lucia-auth.com/tutorials/github-oauth/astro)。 ::: ### 下一步 @@ -91,17 +91,17 @@ Auth.js 是一个与框架无关的认证解决方案。社区框架适配器 [` ```shell - npm install auth-astro + npm install auth-astro @auth/core@^0.18.6 ``` ```shell - pnpm add auth-astro @auth/core + pnpm add auth-astro @auth/core@^0.18.6 ``` ```shell - yarn add auth-astro + yarn add auth-astro @auth/core@^0.18.6 ```