Warning
This repository has been archived as of January 11, 2024 and will not be further maintained. If you are curious about this repo and looking for help, please join our Discord https://clerk.com/discord
Clerk Capacitor Starter
This example shows how to use Clerk with Capacitor.js.
Clerk is Hiring!
Would you like to work on Open Source software and help maintain this repository? Apply today!
Created with Capacitor Create App
This app was created using @capacitor/create-app
,
and comes with a very minimal shell for building an app.
Running this example
To run the provided example, you can use serve:
npx serve
Setup
- Add the allowed_origins to your instance via Clerk Backend API
curl -X PATCH https://api.clerk.dev/v1/instance \
-H "Authorization: Bearer backend_key_goes_here" \
-H "Content-type: application/json" \
-d '{"experimental_allowed_origins": ["capacitor://localhost:3000"]}'
- Initiate the Clerk object as shown in our Clerk-Capacitor starter repo. Note this repo is WIP.