Questions tagged [clerk]
57 questions
6
votes
6 answers
Clerk Instance Not Found
I've been developing a thread video from JS Mastery and got hit by this error:
- error node_modules\@clerk\shared\dist\esm\hooks\createContextAndHook.js (4:0) @ assertContextExists
- error Error: ClerkInstanceContext not found
null
can anyone help…

killuaconfessions
- 69
- 3
6
votes
2 answers
Disable sign up option using Clerk authentication?
I'm using Clerk to implement authentication for my application. It's an app that will only be used internally so I just want the people I give access to be able to sign in. I don't really want anyone to have the ability to sign up themselves. I like…

taylor018
- 351
- 2
- 16
4
votes
2 answers
Clerk and Svix web hooks not working with error: "src property must be a valid json object"
I'm trying to sync my Clerk data to my database in my Next js 13 project. My webhooks are publicly exposed with Ngrok. Here's my code:
import { IncomingHttpHeaders } from "http";
import { headers } from "next/headers";
import { NextResponse } from…

Ethan
- 118
- 1
- 13
3
votes
1 answer
Clerk redirecting to localhost after authentication
On my production site hosted on vercel, after authentication with clerk, it redirects me to localhost. This only happens on the laptop I'm using for development.
If I connect to the production site on another device, it correctly redirects me back…

Sujio
- 357
- 1
- 2
- 13
3
votes
2 answers
Clerk fails to get the publishable key from the environment variables in Next.js 13
I have a site I've built with Next 13 (experimental app directory) and have integrated authentication in my site with Clerk.
Everything works well on my local environment. When deployed to Netlify, it builds just fine, but if I try to visit the site…

Tsabary
- 3,119
- 2
- 24
- 66
3
votes
2 answers
How to get a logged in users google access token when using clerk for auth
In my NextJS app I am using clerk for auth (Google SSO) and I want to be able to create a google meet event through the UI on behalf of the signed in user. I believe the way to do this is once a user has used signed in through google sso I should be…

James Aldridge
- 49
- 3
2
votes
0 answers
Automatic publicPath is not supported in this browser, js engine: hermes
Today I tried to setup expo (expo router) with clerk and i did not work at all. I always get a Automatic publicPath is not supported in this browser, js engine: hermes error, even tough I am just following the tutorial. I tried it a few months ago…

hinterberger-thomas
- 115
- 1
- 5
2
votes
1 answer
Next.js with Clerk Auth - how to detect if a user just signed up?
Using Clerk Auth, I have a working login/sign-up flow with Next.js 13 middleware.
When a user signs up, I want to add a row to my DB's Users table.
The problem with middleware is that it runs on every single request and I don't want to make a call…

PGT
- 1,468
- 20
- 34
2
votes
1 answer
Nextjs 13 authentication between server component and separate backend
I am unsure about how to make API calls from Nextjs 13 to my separate Python backend.
I have two scenarios:
API call comes from client side component
API call comes from server side component
The client side component has the correct session…

siva
- 1,183
- 3
- 12
- 28
2
votes
1 answer
Best practice for integrating clerk with supabase
I came up with my custom react hook for handling supabase, I don't know if using this hook everywhere would be the best practice as I have to deal with isLoading every time when I use it.
import { useEffect, useState } from 'react'
import { useAuth…

xxx222
- 2,980
- 5
- 34
- 53
2
votes
2 answers
Error: ClerkJS: Invalid frontendAPI option. Go to the instance home page at https://dashboard.clerk.dev and get your Frontend API value
ClerkJS API will not work even though I have inserted the correct Clerk API keys.
I am expecting for the application to allow me to use the ClerkJS API for user authentication.

Amsu Warner
- 31
- 2
1
vote
1 answer
Clerk components like and are not rendering and I can't understand why
import Link from 'next/link';
import Image from 'next/image';
import { dark } from "@clerk/themes";
import { ClerkProvider, OrganizationSwitcher, SignOutButton, SignedIn } from '@clerk/nextjs';
function Topbar() {
return (
1
vote
0 answers
Many-To-Many relationship when using Clerk as Auth with Next.js app + Prisma ORM
I'm using Clerk for authentication in a next.js application with the help of Prisma as an ORM. I know how to manage post model by using authorId for example, but I have problems with many-to-many, enum an one-to-one relations.
I want my user managed…

javad
- 13
- 4
1
vote
2 answers
401 Unauthorised when processing a Webhook
I'm trying to process a webhook sent by the auth provider Clerk when a user is created. In order to test this procedure locally, I tried localtunnel which did not work and then ngrok.
When the webhook is sent to the…

Braz
- 73
- 6
1
vote
0 answers
How to deploy ClerkJS used with Vite using Vercel?
I am trying to test out how to deploy ClerkJS Apps when used with Vite. I have created a sample project here:
https://github.com/shivpreet16/authentication-clerk-react
I have been following this doc:…

Jayanti
- 103
- 2
- 7