authkit-nextjs
The WorkOS library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js.
파일 탐색기
- bug_report.md
- ci.yml
- lint-pr-title.yml
- release-please.yml
- release.yml
- CODEOWNERS
- page.tsx
- signOut.ts
- route.ts
- route.ts
- footer.tsx
- sign-in-button.tsx
- route.ts
- favicon.ico
- layout.tsx
- page.tsx
- env.d.ts
- proxy.ts
- .env.local.example
- next.config.js
- package.json
- README.md
- tsconfig.json
- page.tsx
- signOut.ts
- route.ts
- footer.tsx
- sign-in-button.tsx
- route.ts
- layout.tsx
- page.tsx
- env.d.ts
- proxy.ts
- .dev.vars.example
- .env.local.example
- package.json
- README.md
- tsconfig.json
- tsconfig.tsbuildinfo
- vite.config.ts
- wrangler.jsonc
- authkit-provider.spec.tsx
- authkit-provider.tsx
- button.spec.tsx
- button.tsx
- impersonation.spec.tsx
- impersonation.tsx
- index.ts
- min-max-button.spec.tsx
- min-max-button.tsx
- tokenStore.spec.ts
- tokenStore.ts
- useAccessToken.spec.tsx
- useAccessToken.ts
- useRecentAuth.spec.tsx
- useRecentAuth.ts
- useTokenClaims.spec.tsx
- useTokenClaims.ts
- actions.spec.ts
- actions.ts
- auth.spec.ts
- auth.ts
- authkit-callback-route.spec.ts
- authkit-callback-route.ts
- cookie.spec.ts
- cookie.ts
- env-variables.ts
- errors.spec.ts
- errors.ts
- feature-flags.spec.ts
- feature-flags.ts
- get-authorization-url.spec.ts
- get-authorization-url.ts
- index.ts
- interfaces.ts
- jwt.spec.ts
- jwt.ts
- middleware-helpers.spec.ts
- middleware-helpers.ts
- middleware.spec.ts
- middleware.ts
- pkce.spec.ts
- pkce.ts
- session.spec.ts
- session.ts
- test-helpers.ts
- use-server-guard.spec.ts
- utils.spec.ts
- utils.ts
- validate-api-key.spec.ts
- validate-api-key.ts
- workos.spec.ts
- workos.ts
- react.d.ts
- .eslintignore
- .eslintrc.cjs
- .gitignore
- .oxfmtrc.json
- .oxlintrc.json
- .release-please-manifest.json
- CHANGELOG.md
- context7.json
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- README.md
- release-please-config.json
- renovate.json
- tsconfig.app.json
- tsconfig.base.json
- tsconfig.json
- tsconfig.test.json
- vitest.config.ts
- vitest.server-only-stub.ts
- vitest.setup.ts
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
openssl rand
설명 보기 ▼
openssl rand
Generate random bytes using a cryptographically secure PRNG.
openssl rand -hex 8
Generate an 8-byte (16 characters) hex string and write it to `stdout`:
openssl rand -base64 20
Generate 20 random bytes encoded in base64:
openssl rand -out {{path/to/file}} {{length}}
Generate random bytes and write them to a file (without encoding):
openssl
설명 보기 ▼
openssl
OpenSSL 암호화 도구 모음.
`req`와 같은 일부 하위명령어는 별도의 사용법 문서를 가짐.
더 많은 정보: <https://docs.openssl.org/master/man1/openssl/>.
openssl genpkey -algorithm {{rsa|ec}} -out {{path/to/private.key}} -aes256
개인 키 생성 및 AES-256으로 출력 파일 암호화:
openssl rsa -in {{path/to/private.key}} -pubout -out {{path/to/public.key}}
`rsa`를 사용해 개인키(`private.key`)로부터 공개 키 생성:
openssl req -new -x509 -key {{path/to/private.key}} -out {{path/to/certificate.crt}} -days 365
지정된 기간(365일) 동안 유효한 자체 서명 인증서 생성:
pnpm
설명 보기 ▼
pnpm
빠르고, 디스크 공간 효율적인 Node.js용 패키지 관리자.
Node.js 프로젝트 및 해당 모듈 의존성 관리.
더 많은 정보: <https://pnpm.io/pnpm-cli>.
pnpm init
`package.json` 파일 생성:
pnpm {{[i|install]}}
`package.json`에 의존성으로 나열된 모든 패키지를 다운로드:
pnpm add {{module_name}}@{{version}}
특정 버전의 패키지를 다운로드하여 `package.json`의 의존성 목록에 추가:
yarn
설명 보기 ▼
yarn
JavaScript 및 Node.js 패키지 대체 관리자.
더 많은 정보: <https://yarnpkg.com/cli>.
yarn global add {{module_name}}
전역적으로 모듈 설치:
yarn install
`package.json` 파일에 참조된 모든 의존성을 설치 ( `install`은 선택 사항입니다):
yarn add {{module_name}}@{{version}}
모듈을 설치하고 `package.json` 파일에 대한 의존성으로 저장 (개발 전용 의존성으로 추가하려면 `--dev` 추가):
