You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/ko/guides/authentication.mdx
+1-135Lines changed: 1 addition & 135 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,148 +11,14 @@ import ReadMore from '~/components/ReadMore.astro'
11
11
12
12
인증 및 승인은 웹사이트 또는 앱에 대한 액세스를 관리하는 두 가지 보안 프로세스입니다. 인증은 방문자의 신원을 확인하는 반면, 승인은 보호 구역 및 자원에 대한 접근 권한을 부여합니다.
13
13
14
-
인증을 사용하면 사이트의 특정 영역을 로그인한 개인에 맞춰 사용자 정의할 수 있으며 개인 정보 또는 비공개 정보를 최대한 보호할 수 있습니다. 인증 라이브러리 (예: [Auth.js](https://authjs.dev/), [Clerk](https://clerk.com))는 이메일 로그인 및 OAuth 공급자와 같은 다양한 인증 방법을 위한 유틸리티를 제공합니다.
14
+
인증을 사용하면 사이트의 특정 영역을 로그인한 개인에 맞춰 사용자 정의할 수 있으며 개인 정보 또는 비공개 정보를 최대한 보호할 수 있습니다. 인증 라이브러리 (예: [Better Auth](https://better-auth.com/), [Clerk](https://clerk.com))는 이메일 로그인 및 OAuth 공급자와 같은 다양한 인증 방법을 위한 유틸리티를 제공합니다.
15
15
16
16
:::tip
17
17
Astro에 대한 공식 인증 솔루션은 없지만 통합 디렉터리에서 [커뮤니티 "인증" 통합](https://astro.build/integrations/?search=auth)을 찾을 수 있습니다.
18
18
:::
19
19
20
20
<ReadMore>이러한 백엔드 서비스에 대한 전용 가이드에서 [Supabase로 인증을 추가](/ko/guides/backend/supabase/#supabase로-인증-추가)하거나 [Firebase로 인증을 추가](/ko/guides/backend/google-firebase/#firebase로-인증-추가)하는 방법을 알아보세요.</ReadMore>
21
21
22
-
## Auth.js
23
-
24
-
Auth.js는 프레임워크에 구애받지 않는 인증 솔루션입니다. Astro용 커뮤니티 프레임워크 어댑터 [`auth-astro`](https://www.npmjs.com/package/auth-astro)를 사용할 수 있습니다.
25
-
26
-
### 설치
27
-
28
-
선호하는 패키지 관리자의 `astro add` 명령어를 사용하여, 요청 시 렌더링을 위한 [서버 어댑터](/ko/guides/on-demand-rendering/#서버-어댑터)가 구성된 Astro 프로젝트에 `auth-astro` 통합을 추가하세요.
29
-
30
-
<PackageManagerTabs>
31
-
<Fragmentslot="npm">
32
-
```shell
33
-
npx astro add auth-astro
34
-
```
35
-
</Fragment>
36
-
<Fragmentslot="pnpm">
37
-
```shell
38
-
pnpm astro add auth-astro
39
-
```
40
-
</Fragment>
41
-
<Fragmentslot="yarn">
42
-
```shell
43
-
yarn astro add auth-astro
44
-
```
45
-
</Fragment>
46
-
</PackageManagerTabs>
47
-
48
-
#### 수동 설치
49
-
50
-
`auth-astro`를 수동으로 설치하려면 패키지 관리자로 필요한 패키지를 설치하세요.
51
-
52
-
<PackageManagerTabs>
53
-
<Fragmentslot="npm">
54
-
```shell
55
-
npm install auth-astro @auth/core@^0.18.6
56
-
```
57
-
</Fragment>
58
-
<Fragmentslot="pnpm">
59
-
```shell
60
-
pnpm add auth-astro @auth/core@^0.18.6
61
-
```
62
-
</Fragment>
63
-
<Fragmentslot="yarn">
64
-
```shell
65
-
yarn add auth-astro @auth/core@^0.18.6
66
-
```
67
-
</Fragment>
68
-
</PackageManagerTabs>
69
-
70
-
그런 다음 `integrations` 속성을 사용하여 `astro.config.*` 파일에 통합을 적용합니다.
71
-
72
-
```ts title="astro.config.mjs" ins={3,8}
73
-
import { defineConfig } from'astro/config';
74
-
importnetlifyfrom'@astrojs/netlify';
75
-
importauthfrom'auth-astro';
76
-
77
-
exportdefaultdefineConfig({
78
-
// ...
79
-
adapter: netlify(),
80
-
integrations: [auth()],
81
-
});
82
-
```
83
-
84
-
### 구성
85
-
86
-
프로젝트의 루트 디렉터리에 `auth.config.ts` 파일을 생성합니다. 필요한 환경 변수와 함께 지원하려는 인증 [공급자](https://authjs.dev/getting-started/providers) 또는 메서드를 추가하세요.
0 commit comments