Skip to content

Commit 189e987

Browse files
committed
🔄 Synced local '.' with remote 'apps/examples/nextjs'
1 parent 6175783 commit 189e987

File tree

2 files changed

+18
-76
lines changed

2 files changed

+18
-76
lines changed

auth.ts

Lines changed: 14 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
11
import NextAuth from "next-auth"
22

3-
// import Apple from "next-auth/providers/apple"
43
// import Atlassian from "next-auth/providers/atlassian"
5-
// import Auth0 from "next-auth/providers/auth0"
64
// import Authentik from "next-auth/providers/authentik"
75
// import AzureAD from "next-auth/providers/azure-ad"
86
// import AzureB2C from "next-auth/providers/azure-ad-b2c"
97
// import Battlenet from "next-auth/providers/battlenet"
108
// import Box from "next-auth/providers/box"
119
// import BoxyHQSAML from "next-auth/providers/boxyhq-saml"
1210
// import Bungie from "next-auth/providers/bungie"
13-
// import Cognito from "next-auth/providers/cognito"
1411
// import Coinbase from "next-auth/providers/coinbase"
1512
// import Discord from "next-auth/providers/discord"
1613
// import Dropbox from "next-auth/providers/dropbox"
1714
// import DuendeIDS6 from "next-auth/providers/duende-identity-server6"
1815
// import Eveonline from "next-auth/providers/eveonline"
19-
// import Facebook from "next-auth/providers/facebook"
2016
// import Faceit from "next-auth/providers/faceit"
2117
// import FortyTwoSchool from "next-auth/providers/42-school"
2218
// import Foursquare from "next-auth/providers/foursquare"
2319
// import Freshbooks from "next-auth/providers/freshbooks"
2420
// import Fusionauth from "next-auth/providers/fusionauth"
25-
import GitHub from "next-auth/providers/github"
2621
// import Gitlab from "next-auth/providers/gitlab"
27-
// import Google from "next-auth/providers/google"
2822
// import Hubspot from "next-auth/providers/hubspot"
2923
// import Instagram from "next-auth/providers/instagram"
3024
// import Kakao from "next-auth/providers/kakao"
3125
// import Keycloak from "next-auth/providers/keycloak"
3226
// import Line from "next-auth/providers/line"
33-
// import LinkedIn from "next-auth/providers/linkedin"
3427
// import Mailchimp from "next-auth/providers/mailchimp"
3528
// import Mailru from "next-auth/providers/mailru"
3629
// import Medium from "next-auth/providers/medium"
@@ -40,9 +33,7 @@ import GitHub from "next-auth/providers/github"
4033
// import Onelogin from "next-auth/providers/onelogin"
4134
// import Osso from "next-auth/providers/osso"
4235
// import Osu from "next-auth/providers/osu"
43-
// import Passage from "next-auth/providers/passage"
4436
// import Patreon from "next-auth/providers/patreon"
45-
// import Pinterest from "next-auth/providers/pinterest"
4637
// import Pipedrive from "next-auth/providers/pipedrive"
4738
// import Reddit from "next-auth/providers/reddit"
4839
// import Salesforce from "next-auth/providers/salesforce"
@@ -51,8 +42,6 @@ import GitHub from "next-auth/providers/github"
5142
// import Strava from "next-auth/providers/strava"
5243
// import Todoist from "next-auth/providers/todoist"
5344
// import Trakt from "next-auth/providers/trakt"
54-
// import Twitch from "next-auth/providers/twitch"
55-
// import Twitter from "next-auth/providers/twitter"
5645
// import UnitedEffects from "next-auth/providers/united-effects"
5746
// import Vk from "next-auth/providers/vk"
5847
// import Wikimedia from "next-auth/providers/wikimedia"
@@ -63,76 +52,26 @@ import GitHub from "next-auth/providers/github"
6352
// import Zoho from "next-auth/providers/zoho"
6453
// import Zoom from "next-auth/providers/zoom"
6554

55+
import Apple from "next-auth/providers/apple"
56+
import Auth0 from "next-auth/providers/auth0"
57+
import AzureDevops from "next-auth/providers/azure-devops"
58+
import Cognito from "next-auth/providers/cognito"
59+
import Facebook from "next-auth/providers/facebook"
60+
import GitHub from "next-auth/providers/github"
61+
import Google from "next-auth/providers/google"
62+
import LinkedIn from "next-auth/providers/linkedin"
63+
import Passage from "next-auth/providers/passage"
64+
import Pinterest from "next-auth/providers/pinterest"
65+
import Twitch from "next-auth/providers/twitch"
66+
import Twitter from "next-auth/providers/twitter"
67+
6668
import type { NextAuthConfig } from "next-auth"
6769

6870
export const config = {
6971
theme: {
7072
logo: "https://next-auth.js.org/img/logo/logo-sm.png",
7173
},
72-
providers: [
73-
// Apple,
74-
// Atlassian,
75-
// Auth0,
76-
// Authentik,
77-
// AzureAD,
78-
// AzureB2C,
79-
// Battlenet,
80-
// Box,
81-
// BoxyHQSAML,
82-
// Bungie,
83-
// Cognito,
84-
// Coinbase,
85-
// Discord,
86-
// Dropbox,
87-
// DuendeIDS6,
88-
// Eveonline,
89-
// Facebook,
90-
// Faceit,
91-
// FortyTwoSchool,
92-
// Foursquare,
93-
// Freshbooks,
94-
// Fusionauth,
95-
GitHub,
96-
// Gitlab,
97-
// Google,
98-
// Hubspot,
99-
// Instagram,
100-
// Kakao,
101-
// Keycloak,
102-
// Line,
103-
// LinkedIn,
104-
// Mailchimp,
105-
// Mailru,
106-
// Medium,
107-
// Naver,
108-
// Netlify,
109-
// Okta,
110-
// Onelogin,
111-
// Osso,
112-
// Osu,
113-
// Passage,
114-
// Patreon,
115-
// Pinterest,
116-
// Pipedrive,
117-
// Reddit,
118-
// Salesforce,
119-
// Slack,
120-
// Spotify,
121-
// Strava,
122-
// Todoist,
123-
// Trakt,
124-
// Twitch,
125-
// Twitter,
126-
// UnitedEffects,
127-
// Vk,
128-
// Wikimedia,
129-
// Wordpress,
130-
// WorkOS,
131-
// Yandex,
132-
// Zitadel,
133-
// Zoho,
134-
// Zoom,
135-
],
74+
providers: [Apple, Auth0, AzureDevops, Cognito, Facebook, GitHub, Google, LinkedIn, Passage, Pinterest, Twitch, Twitter],
13675
basePath: "/auth",
13776
callbacks: {
13877
authorized({ request, auth }) {

components/user-button.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export default async function UserButton() {
2424
<Avatar className="w-8 h-8">
2525
{session.user.image && (
2626
<AvatarImage
27-
src={session.user.image}
27+
src={
28+
session.user.image ??
29+
"https://source.boringavatars.com/beam/120"
30+
}
2831
alt={session.user.name ?? ""}
2932
/>
3033
)}

0 commit comments

Comments
 (0)