joschan21 / quill

Quill - A Modern SaaS-Platform Built With Next.js 13
1.91k stars 514 forks source link

fix: you couldn't log out on mobile #7

Closed ZeberMVP closed 7 months ago

ZeberMVP commented 1 year ago

Sign out button on the mobile navbar was a link to a href that doesn't exist. I changed it to a LogoutLink component from Kinde as the desktop one. Kinde right now has a bug which prevents you from using this on a client component. I fixed this by changing the browser settings on the package.json. I found this solution on this article.

ZeberMVP commented 1 year ago

Yup. I truly don't know why, but it fixes the error you get from using LogoutLink in a client component. In the issue I attached they say they are currently working on fixing the SDK, so maybe you can revert the package.json change when they are done.

tomas-fw commented 10 months ago

Hi! I realized the same thing and just wanted to offer my two cents. I fixed it by adding the following into the next.config file. Hope it helps!

image