-
Notifications
You must be signed in to change notification settings - Fork 11
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
Signing out a user #126
Comments
@JeroenReumkens Thanks for your kind words. Keep the feedback coming :) Clerk already offers a import { $clerk } from 'astro-clerk-auth/stores'; Probably a Regarding the server solution that you mention, are you looking for a way to simply fire a request from the client to your endpoint in order for the user to sign out ? |
Thanks for getting back to me @panteliselef In the meantime I indeed found the Until that hook is added I think it will be very useful to mention the Server sideAs for the server, I'd like something like:
This way I can also create a page (/logout) which you can visit to also sign out. |
@JeroenReumkens I've added signOut to |
Hi!
Thanks for making this package! I'm right now converting my own very poor implementation of this to your package, and really liking it so far! Thanks for all the work you put in 🙏
I'm wondering if it's possible to also add functionality to sign the user out? Preferably by exposing a method we can use on the server to clear the session. A React hook as a second option would definitely be welcome too, although I like to sign out on the server most of the times (eg create a route /auth/logout).
Thank you so much! Happy to make a PR by the way, but might need some pointers on how / where to add it in that case.
The text was updated successfully, but these errors were encountered: