flemingvincent/expo-clerk-convex
소개
Clerk와 Convex를 사용한 이메일/비밀번호 인증 및 Expo Router를 통한 라우트 보호에 중점을 둔 Expo 스타터입니다.
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- -3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalExpo Clerk Convex
Introduction
This repository is an Expo starter focused on email/password authentication with Clerk, Convex, and Expo Router route protection.
Disclaimer
This is not supposed to be a template, boilerplate or a framework. It is an opinionated guide that shows how to do some things in a certain way. You are not forced to do everything exactly as it is shown here, decide what works best for you and your team and stay consistent with your style.
Get Started
Configure Clerk
- Create a Clerk application at dashboard.clerk.com.
- Enable email/password authentication for the application.
- Configure email verification to use an email code flow for sign-up.
- Enable the Convex integration for the Clerk application.
- Copy the Clerk Frontend API URL that Convex will use as
CLERK_JWT_ISSUER_DOMAIN.
Clone the repository to your local machine
git clone https://github.com/FlemingVincent/expo-clerk-convex.git
- Navigate to the project directory
cd expo-clerk-convex
- Install dependencies
bun install
- Create a Convex dev deployment
npx convex dev
This command creates the convex/ backend, prompts you to sign in to Convex, and prints the deployment URL you need for the Expo app.
Update environment variables
- Add
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEYto your.env.localfile with your Clerk publishable key. - Add
EXPO_PUBLIC_CONVEX_URLto your.env.localfile with your Convex deployment URL. - Add
CLERK_JWT_ISSUER_DOMAINto your Convex environment variables with the Clerk Frontend API URL.
- Add
Start the Expo development server
npx expo start --clear --reset-cache
Authentication Flow
- Sign in uses Clerk email/password authentication.
- Sign up creates the account, sends an email verification code, and completes verification in-app.
- Route access is controlled by Clerk auth state in the root Expo Router layout.
- Convex trusts the authenticated Clerk session for backend access, without mirroring Clerk users into a Convex
userstable.
Contributing
Contributions to this starter project are highly encouraged and welcome! If you have any suggestions, bug reports, or feature requests, please feel free to create an issue or submit a pull request. Let's work together to enhance the developer experience and make it easier for everyone to build exceptional Expo applications with Clerk.
License
This repository is licensed under the MIT License. You are granted the freedom to use, modify, and distribute the code for personal or commercial purposes. For more details, please refer to the LICENSE file.
관련 프로젝트 살펴보기
불러오는 중…