Skip to content

Commit

Permalink
Support Google OAuth (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneIRL authored Aug 26, 2023
1 parent 008aec4 commit 97c5465
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 68 deletions.
2 changes: 2 additions & 0 deletions .env.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ OAUTH_DISCORD_ID=
OAUTH_DISCORD_SECRET=
OAUTH_GITHUB_ID=
OAUTH_GITHUB_SECRET=
OAUTH_GOOGLE_ID=
OAUTH_GOOGLE_SECRET=

# Transactional emails.
## One of MAILCHIMP_TRANSACTIONAL_API_KEY, SENDGRID_API_KEY, or SMTP_* must be set.
Expand Down
Binary file modified public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file removed public/favicon.png
Binary file not shown.
10 changes: 0 additions & 10 deletions public/favicon.svg

This file was deleted.

Binary file removed public/mstile-144x144.png
Binary file not shown.
Binary file modified public/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/mstile-310x150.png
Binary file not shown.
Binary file removed public/mstile-310x310.png
Binary file not shown.
Binary file removed public/mstile-70x70.png
Binary file not shown.
67 changes: 21 additions & 46 deletions public/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ export const metadata = {
},
icons: [
// https://realfavicongenerator.net
{
rel: 'icon',
type: 'image/svg+xml',
sizes: '512x512',
url: '/favicon.svg',
},
{
rel: 'icon',
type: 'image/png',
sizes: '48x48',
url: '/favicon.png',
},
{
rel: 'icon',
type: 'image/png',
Expand Down
2 changes: 2 additions & 0 deletions src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { OAuthConfig, OAuthUserConfig } from 'next-auth/providers'
import DiscordProvider from 'next-auth/providers/discord'
import EmailProvider from 'next-auth/providers/email'
import GitHubProvider from 'next-auth/providers/github'
import GoogleProvider from 'next-auth/providers/google'

import {
EnhancedSession,
Expand All @@ -30,6 +31,7 @@ const SupportedProviders = new Map<
>([
['discord', DiscordProvider],
['github', GitHubProvider],
['google', GoogleProvider],
])

function* getOAuthProviders(): Generator<OAuthConfig<any>> {
Expand Down

0 comments on commit 97c5465

Please sign in to comment.