-
Notifications
You must be signed in to change notification settings - Fork 0
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: ✨ implement google oauth #27
Conversation
if (dbUser) { | ||
return dbUser; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be outside of the try block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a weird... quirk of Lucia (?) where auth.getUser()
raises an error when passed a key not in the database.
The try block allows for a "quiet" handling of the not found case. I've attempted to find an alternate solution, but this piece of code isn't particularly offensive to me.
I can hunt down an alternate solution if you'd pref.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good other than the minor suggestions.
I haven't been able to test it locally because of how I run the development server, but just show me it working on your machine, and I'll take your word for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
email
property of aGoogleUser
as the userId.Testing
Since I'm using my personal Google OAuth keys, please test locally:
Current list of tester accounts:
env
keys:#zotmeet-internal
on DiscordProcess
Working off a variety of resources with varying efficacies:
Issues
Closes #23
To-Do