All Questions
Tagged with typescript clerk
30
questions
0
votes
0
answers
71
views
Error: Clerk: auth() was called but Clerk can't detect usage of clerkMiddleware() (or the deprecated authMiddleware())
I am following a YouTube Tutorial to build a next.js project with Clerk.
However, I keep getting these error messages on the terminal everytime the site is loaded:-
Error: Clerk: auth() was called ...
0
votes
1
answer
34
views
ClerkProvider Error in Nextjs. Attempted import error: 'SWRConfig' is not exported from 'swr'
I just started a new nextjs project installed clerk, set up the env.local and the middleware.ts files. Then I went to wrap the html div with ClerkProvider and got this error when i tried to run it on ...
0
votes
0
answers
14
views
Branding option not found in Clerk
I am building an application in Next.js with typescript where I am managing the user authentication like sign in and sign up using google account or any other recognized social media platforms with ...
-1
votes
0
answers
26
views
How to use subdomains and routing after Clerk authMiddleware() deprication?
I need to code this:
TypeScript
export default authMiddleware({
publicRoutes: ['/site', '/api/uploadthing'],
async beforeAuth(auth, req) {},
async afterAuth(auth, req) {
//rewrite for ...
0
votes
1
answer
52
views
Module '"@clerk/nextjs"' has no exported member 'auth'
I am implementing Clerk Js authentication on my next app.
import Link from 'next/link';
import React from 'react';
import { UserButton, auth, useAuth } from '@clerk/nextjs';
// import { auth } from '@...
0
votes
0
answers
31
views
Clerk Auth handle forceRedirectUrl to userId route
Does anyone have any nice ideas how to handle redirects using a social providers with Clerk and Nextjs14? I want to do something like this for example where the user is redirected to the /user/userId ...
0
votes
0
answers
189
views
How can I resolve access issues I'm having due to warnings in middleware.ts when trying to access my website?
I have a project using Next.js and I deployed it with Vercel. However, when I added the project domain to Google Search Console, it gave me a blocked for unauthorized request (401) error. When I ...
0
votes
1
answer
118
views
Clerk + Convex Auth
I have an application with Clerk authentication. I decided to add a module to it that uses Convex. I decided to combine them and it worked out. When I log into a new module, I see the same user. But ...
1
vote
1
answer
113
views
BadConvexModuleIdentifier: Hit an error while pushing when doing 'npx convex dev'
I am using Convex for the first time and i just added all my files:
However when i hit npx convex dev i get this error,
Error fetching POST https://enchanted-buffalo-216.convex.cloud/api/push_config ...
0
votes
0
answers
53
views
clerk sign-in functionality in next.js un-styled after refresh in production mode
i currently using clerk with nextjs in my project. i follow their documentation, starting with ClerkProvider etc... then i found some bug, when i visit /sign-in page in working perfectly fine, but ...
0
votes
0
answers
34
views
ClerkJS forceRedirectUrl and signUpForceRedirectUrl not working with an external AWS APIGateway domain
I'm trying to get an AWS Lambda api hooked up with a Vite React app using ClerkJS auth. I want to store some user data on sign up and do some other prep on sign in. I want to hit the AWS API rather ...
0
votes
0
answers
47
views
Is there a way to modify the latest `create-t3-app` to create a protected trpc procedure?
I created a new project with npm create-t3-app@latest with trpc, typescript, tailwind, prisma, and clerk. The newest version invokes a caller function to create two api definitions, one for the server ...
1
vote
1
answer
108
views
Clerk Bug: UserResource type from useUser() and @clerk/types do not match
I tried to pass the user coming from useUser() but I get the following error:
Type 'UserResource' is missing the following properties from type 'UserResource': passkeys, createPasskey
Upon further ...
2
votes
4
answers
1k
views
"@clerk/nextjs/server"' has no exported member named 'clerkMiddleware'
I am working on Nextjs 14 with typescript and I am trying to use clerk for authentication and authorization. When I created the app using the clerk docs I was said to write the following code in ...
0
votes
0
answers
60
views
Google search console does not index page due to "Failed: Blocked due to unauthorised request (401)"
I have been trying to get my next js app indexed but it throws around:
Failed: Blocked due to unauthorised request (401)
I beleive it is because the google bot is not able to access my page for ...