Closed Jemeni11 closed 1 year ago
Hey @Jemeni11 thanks for the pr. Yeah you're right, but router.refresh
is available in nextjs app directory. And you seem to have replace the router.refresh
in both the codes(app directory and pages directory). can you please fix that. Thanks!
Hey! Thanks for that, I've seen and corrected my mistake
Path: /quickstarts/fullstack/next
Next JS - Implement logout functionality
Pages Directory
You can use
@teamhanko/hanko-elements
to easily manage user logouts. Below, we make a logout button component that you can use anywhere.The docs mention
router.refresh()
but that method doesn't exist on the Next Router object. I think the author of this meant to userouter.reload()