You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error whenever I try to sign-up as a new user, with a different gmail:
// middleware debug tells me: { "errors": [ { "message": "Unauthorized request", "long_message": "You are not authorized to perform this request", "code": "authorization_invalid" } ], "clerk_trace_id": "0888421536b6a4b48060bc9fc6a06ce4" }
// my authMiddleware.ts
`import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
debug: true,
// An array of public routes that don't require authentication.
publicRoutes: ["/", "/api/webhook/clerk"],
// An array of routes to be ignored by the authentication middleware.
ignoredRoutes: ["/api/webhook/clerk"],
});
export const config = {
matcher: ["/((?!.\..|_next).)", "/", "/(api|trpc)(.)"],
};
`
After checking the Clerk documentation, and several posts here with a similar issue, I'm at a loss. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
hmongdev
changed the title
404 Error When Sign-Up
404 Error When Sign-Up => Onboarding
Sep 21, 2023
I'm getting this error whenever I try to sign-up as a new user, with a different gmail:
// middleware debug tells me: { "errors": [ { "message": "Unauthorized request", "long_message": "You are not authorized to perform this request", "code": "authorization_invalid" } ], "clerk_trace_id": "0888421536b6a4b48060bc9fc6a06ce4" }
// my authMiddleware.ts `import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({ debug: true,
// An array of public routes that don't require authentication. publicRoutes: ["/", "/api/webhook/clerk"],
// An array of routes to be ignored by the authentication middleware. ignoredRoutes: ["/api/webhook/clerk"], });
export const config = { matcher: ["/((?!...|next).)", "/", "/(api|trpc)(._)"], }; ` After checking the Clerk documentation, and several posts here with a similar issue, I'm at a loss. Any help would be appreciated.
I am facing same issue, there is any solution to fix this ?
I'm getting this error whenever I try to sign-up as a new user, with a different gmail:
// middleware debug tells me:
{ "errors": [ { "message": "Unauthorized request", "long_message": "You are not authorized to perform this request", "code": "authorization_invalid" } ], "clerk_trace_id": "0888421536b6a4b48060bc9fc6a06ce4" }
// my authMiddleware.ts
`import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
debug: true,
// An array of public routes that don't require authentication.
publicRoutes: ["/", "/api/webhook/clerk"],
// An array of routes to be ignored by the authentication middleware.
ignoredRoutes: ["/api/webhook/clerk"],
});
export const config = {
matcher: ["/((?!.\..|_next).)", "/", "/(api|trpc)(.)"],
};
`
After checking the Clerk documentation, and several posts here with a similar issue, I'm at a loss. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: