From ecff233f44c9813ba665e6c942ba1c0fb2e0f6e1 Mon Sep 17 00:00:00 2001 From: 100gle Date: Sat, 9 Mar 2024 11:17:59 +0800 Subject: [PATCH 1/2] i18n(zh-cn): Update `guides/authentication.mdx` --- src/content/docs/zh-cn/guides/authentication.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/zh-cn/guides/authentication.mdx b/src/content/docs/zh-cn/guides/authentication.mdx index 63fb4b4c8bbbc..0e2798bc981f0 100644 --- a/src/content/docs/zh-cn/guides/authentication.mdx +++ b/src/content/docs/zh-cn/guides/authentication.mdx @@ -50,7 +50,7 @@ Lucia 是一个与框架无关、基于会话的认证库,对 Astro 支持良 ### 使用方法 :::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 ``` From 42ff87cebb05d5a1a66b119c09540b954631297e Mon Sep 17 00:00:00 2001 From: 100gle Date: Sat, 9 Mar 2024 11:20:33 +0800 Subject: [PATCH 2/2] format content --- src/content/docs/zh-cn/guides/authentication.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/zh-cn/guides/authentication.mdx b/src/content/docs/zh-cn/guides/authentication.mdx index 0e2798bc981f0..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,7 +45,7 @@ Lucia 是一个与框架无关、基于会话的认证库,对 Astro 支持良 ### 配置 -使用 [Lucia 的 “Astro 入门”](https://lucia-auth.com/getting-started/astro) 指南来初始化 Lucia 并配置一个适配器,设置一个数据库来存储用户和会话信息。 +使用 [Lucia 的“Astro 入门”](https://lucia-auth.com/getting-started/astro) 指南来初始化 Lucia 并配置一个适配器,设置一个数据库来存储用户和会话信息。 ### 使用方法