Configure Clerk Authentication
DistApp supports Clerk as an authentication provider, enabling users to sign in using their email addresses.
Setting Up Clerk
- Create a Clerk account at clerk.com
- Create a new application in your Clerk dashboard
- Navigate to the API keys section and copy your publishable and secret keys
Configure Environment Variables
Add the following environment variables to your DistApp configuration to enable Clerk authentication:
shell
NUXT_PUBLIC_CLERK_AUTH_ENABLED=true
NUXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_ # Your Clerk publishable key
NUXT_CLERK_SECRET_KEY=sk_test_ # Your Clerk secret keyAfter adding these variables, restart your deployment to apply the changes.