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

Google auth website #2391

Merged
merged 6 commits into from Apr 14, 2023
Merged

Google auth website #2391

merged 6 commits into from Apr 14, 2023

Conversation

AbdBarho
Copy link
Collaborator

@AbdBarho AbdBarho commented Apr 8, 2023

Add google login to website

lucide Icons has no Google icon, and as it turns out, they don't allow any new branch icons lucide-icons/lucide#670 and will be removing old ones.

So only for logos of brands, we can use this new library, otherwise we stick to lucide

@@ -51,7 +52,8 @@ const ManageUser = ({ user }: InferGetServerSidePropsType<typeof getServerSidePr
const toast = useToast();

const { data: stats } = uswSWRImmutable<Partial<{ [time in LeaderboardTimeFrame]: LeaderboardEntity }>>(
"/api/user_stats?uid=" + user.id,
"/api/user_stats?" +
new URLSearchParams({ id: user.id, auth_method: user.auth_method, display_name: user.display_name }),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix a bug we already have now:

if you go to the prod deployment / admin / open a user that is logged in with discord, the stats are missing at the bottom.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that as well, but I'm too lazy to fix it lol

@AbdBarho AbdBarho changed the title DRAFT: Google auth website Google auth website Apr 14, 2023
@AbdBarho AbdBarho marked this pull request as ready for review April 14, 2023 10:05
@AbdBarho AbdBarho requested a review from notmd as a code owner April 14, 2023 10:05
@notmd notmd merged commit 9835bf5 into main Apr 14, 2023
4 checks passed
@notmd notmd deleted the google-auth-website branch April 14, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants