Closed leo-paz closed 10 months ago
Hello @leo-paz Could u provide us with a repo or something like a CodeSandbox ? The above code seems to work as expected when I moved it to an existing project.
Also about issue with <SignInButton/>
what seems to be the problem ?
@panteliselef Thanks for the prompt reply. So I tried branching off the clerk-next-app-router-starter project after I tried copying over how the built in components were used in layout.tsx
I get this error locally:
Error: Clerk: auth() was called but it looks like you aren't using `authMiddleware` in your middleware file.
Please use `authMiddleware` and make sure your middleware matcher is configured correctly and it matches this route or page.
See https://clerk.com/docs/quickstarts/get-started-with-nextjs
my middleware.ts
is at the same level as /app
and I only see it after trying to use these components in the layout.tsx
.
I'm not sure what I'm doing wrong :/ heres a code snippet
@panteliselef i found a related thread and have attached a link in this comment that reproduces the issue: https://github.com/clerkinc/clerk-next-app-router-starter/issues/2#issuecomment-1703550642
I have the same issue. The useUser hook is inconsistent.
Hello π
We currently close issues after 40 days of inactivity. It's been 30 days since the last update here. If we missed this issue, please reply here. Otherwise, we'll close this issue in 10 days.
As a friendly reminder: The best way to see an issue fixed is to open a pull request. If you're not sure how to do that, please check out our contributing guide.
Thanks for being a part of the Clerk community! π
I also had this problem with my next 13 setup. This issue saved us from migrating off of Clerk. Thank you @leo-paz
Hello π
We currently close issues after 40 days of inactivity. It's been 30 days since the last update here. If we missed this issue, please reply here. Otherwise, we'll close this issue in 10 days.
As a friendly reminder: The best way to see an issue fixed is to open a pull request. If you're not sure how to do that, please check out our contributing guide.
Thanks for being a part of the Clerk community! π
Inactive for 40+ days, reproduction not provided, closing this one. Please feel free to open a new issue if anyone else runs into similar issues!
Brief Summary of the Issue
useUser().isSignedIn
returns false yetuseClerk().user
has the correct user details. I also have had so much trouble usingMinimal Reproduction or Replay
Browser/OS
_If applicable e.g.
Chromium 115.0.5790.114
,Node 18.10.0
Package + Version
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs 4.23.3
@clerk/remix
@clerk/types
@clerk/themes 1.7.5
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore