clerk / clerk-capacitor-starter

Capacitor starter project using Clerk for authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

chat on Discord documentation twitter


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

  1. 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"]}'
  1. Initiate the Clerk object as shown in our Clerk-Capacitor starter repo. Note this repo is WIP.

About

Capacitor starter project using Clerk for authentication


Languages

Language:JavaScript 30.3%Language:HTML 28.7%Language:Swift 24.2%Language:Java 10.3%Language:Ruby 6.2%Language:CSS 0.3%