Skip to content
프로젝트

소개

WorkOS와 Radix로 구동되는 세계 최고의 로그인 박스입니다.

보안 및 개인정보 보호

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+3
in 15 days
+6
in 1 month
+8

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

AuthKit

How to use AuthKit's hosted UI or build your own frontend with the headless User Management APIs

Explore the docs ↗

Screenshot of hosted UI AuthKit in light mode

Examples

There are two ways to use AuthKit and this repository contains examples for both:

  • Using AuthKit's hosted UI This is the fastest way to add authentication to your app with AuthKit and WorkOS User Management. It includes a fully themeable hosted UI that handles all of your authentication flows. When you're ready to go to production you can point it to a custom domain (auth.yourapp.com) to match your application.
  • Using your own custom UI Use all of the features of AuthKit, but build out the UI yourself in your own codebase by integrating directly with the headless WorkOS User Management APIs. Your authentication UI will be self-hosted in your application.

Prerequisites

You will need a WorkOS account.

Running the example

  1. Install dependencies with npm install

  2. Set up your Environment variables by signing into your WorkOS dashboard, navigate to API Keys and copy the Client ID and the Secret Key (API Key). Rename the .env.local.example file to .env.local and supply your Client ID and Secret Key.

    WORKOS_CLIENT_ID="<your Client ID>"
    WORKOS_API_KEY="<your Secret Key>"
    
  3. Configure redirects in your WorkOS dashboard, navigate to Redirects and add the following urls:

    http://localhost:3000/using-your-own-ui/sign-in/google-oauth/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/microsoft-oauth/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/github-oauth/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/sso/callback
    
    http://localhost:3000/using-hosted-authkit/basic/callback
    
    http://localhost:3000/using-hosted-authkit/with-session/callback
    
    http://localhost:3000/using-hosted-authkit/with-nextjs/callback
    
  4. Run the example with npm run dev and navigate to http://localhost:3000

관련 프로젝트 살펴보기

불러오는 중…