-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @Leonardo-Mazzuca and @raph90 can you open a separate issue with a minimal reproduction if possible? Thanks! #1738
Comments
@Leonardo-Mazzuca did you only experience this today for the first time? |
Actually i found the problem, and for me, it was basically the timestamp of my region. Since i'm on Brazil, it has a 30 seconds delay when i was trying to login, and it was resulting in a future token send error, i guess it called NBC or something like it. But basically after configure the timestamp of my pc, it solved......but anyway, i will show the test project that i used. So basically i did everything that is in the clerk Next js docs. I put the ClerkProvider component as usual in the layout.tsx file, and ok. So my Home page ( page.tsx ) got like that: import { SignedIn, SignedOut, SignInButton, UserButton } from "@clerk/nextjs"; export default async function Home() { const {userId} = await auth(); console.log('Id: ', userId); return (
); I did just that and i debugged by the console. But after i cofigured the time stamp of my pc, it solved. And now i can access data from the user using SSC ( server side components ). I will create a repository with this project test, so you guys can use it, but its just page with a Test text in the middle, but anyway. I hope this issue is getting fixed..... So thats the repo: https://github.com/Leonardo-Mazzuca/clerk-server-test/tree/main I made a small tutorial in the README.md....so i hope i can help |
Thanks - I'm following this thread: |
Yes man....and i was searching for it in the web, but i didn't found anyone with the same exact issue😅 |
I tried it too....by deleting a specific cookie, but it didn't work for me Can u check your terminal on your application to see if is there any error??? I was receiving this: Clerk: Clock skew detected. This usually means that your system clock is To resolve this issue, make sure your system's clock is set to the correct time (e.g. turn off and on automatic time synchronization). JWT cannot be used prior to not before date claim (nbf). Not before date: Fri, 22 Nov 2024 15:01:35 GMT; Current date: Fri, 22 Nov 2024 15:00:46 GMT; (reason=token-not-active-yet, token-carrier=cookie) To resolve this issue, make sure your system's clock is set to the correct time (e.g. turn off and on automatic time synchronization). JWT cannot be used prior to not before date claim (nbf). Not before date: Fri, 22 Nov 2024 15:01:35 GMT; Current date: Fri, 22 Nov 2024 15:00:46 GMT; (reason=token-not-active-yet, token-carrier=cookie) To resolve this issue, make sure your system's clock is set to the correct time (e.g. turn off and on automatic time synchronization). JWT cannot be used prior to not before date claim (nbf). Not before date: Fri, 22 Nov 2024 15:01:35 GMT; Current date: Fri, 22 Nov 2024 15:00:47 GMT; (reason=token-not-active-yet, token-carrier=cookie) |
Yeah I do have an error:
But I have no idea what JSON is being referred to |
Wow thats really weird... Can u show me the repo of your app??? Maybe i can clone it and try to figure out But i found some things about it and it could be about your project configuration...like the publishable key in your .env file |
It's a private repo unfortunately - I've double checked my keys and they're 100% correct :( |
A..... in your browser terminal, is that anything else that we can use to debbug?? Because your problem is different of what i've faced.... Have you tried to create a new project just to test??? And see if is there any error?? |
The issue is on the server not in the browser I think. That's why the clerk error is so obscure. It's calling fetch in the background and there's an error somewhere. Appreciate your help @Leonardo-Mazzuca - I'm going to try messing around with some stuff and see what works |
I'm sorry man.....i really would like to help u, because i was fighting with this as well. I hope someone from clerk see this, because i guess we are not the only ones who was facing problems with SSC....but either way, if u found a solution, comment here! |
Will do! Good luck! :) |
Hi friends, I don't think you meant to open this issue in Clerk Docs. Closing this 👍 |
Originally posted by @BRKalow in clerk/javascript#1537 (comment)
The text was updated successfully, but these errors were encountered: