Hi Juan! Thank you so much for this very detailed tutorial. Aside from helping me with auth, I also got a better understanding on how getInitialProps work! :D
I just have a question. I'm in Next 9 and when I try to use withAuthSync HOC. I get a UnhandledPromiseRejectionWarning: Error: No router instance found. error whenever I visit the page with the withAuthSync HOC.
You should only use "next/router" inside the client side of your app..
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Juan! Thank you so much for this very detailed tutorial. Aside from helping me with auth, I also got a better understanding on how getInitialProps work! :D
I just have a question. I'm in Next 9 and when I try to use withAuthSync HOC. I get a
UnhandledPromiseRejectionWarning: Error: No router instance found.
error whenever I visit the page with the withAuthSync HOC.You should only use "next/router" inside the client side of your app.
.