Skip to content
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

feat: add server logout handler #5

Merged
merged 3 commits into from
Nov 23, 2023
Merged

feat: add server logout handler #5

merged 3 commits into from
Nov 23, 2023

Conversation

juni0r
Copy link
Contributor

@juni0r juni0r commented Nov 23, 2023

Adds server action to properly terminate session by expiring the auth token cookie. Fixes #4.

@Tahul
Copy link
Owner

Tahul commented Nov 23, 2023

Good catch; I kinda rushed the auth part as I don't really need it for my current use-cases.

Would love having a review from you on that side.

Also, I guess we could go 1 step further and also include exports to simplify communication with OAuth providers APIs.

Currently, we don't preserve anything from these providers, like the email of a user from GitHub or Google.

WDYT?

@Tahul Tahul merged commit a88cb5b into Tahul:main Nov 23, 2023
@juni0r juni0r deleted the logout-action branch November 23, 2023 22:09
@juni0r
Copy link
Contributor Author

juni0r commented Nov 24, 2023

Hey, thanks for merging. I haven't looked at the OAuth stuff at all by now, so I can't give a qualified opinion. I'm totally new to EdgeDB and haven't used it before. As I'm growing more familiar with it over the coming weeks, I will come back with more input and the occasional PR. I think you did a great job with the module so far and I'm looking forward to helping shape it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auth: Logout doesn't clear the client session since HTTP-only cookie can't be removed.
2 participants