File tree Expand file tree Collapse file tree 5 files changed +42
-20
lines changed Expand file tree Collapse file tree 5 files changed +42
-20
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,13 @@ We're happy to announce we've recently created an [OpenCollective](https://openc
197
197
<div>Checkly</div><br />
198
198
<sub>☁️ Infrastructure Support</sub>
199
199
</td>
200
+ <td align="center" valign="top">
201
+ <a href="https://superblog.ai/" target="_blank">
202
+ <img width="128px" src="https://d33wubrfki0l68.cloudfront.net/cdc4a3833bd878933fcc131655878dbf226ac1c5/10cd6/images/logo_bolt_small.png" alt="superblog Logo" />
203
+ </a><br />
204
+ <div>superblog</div><br />
205
+ <sub>☁️ Infrastructure Support</sub>
206
+ </td>
200
207
</tr><tr></tr>
201
208
</tbody >
202
209
</table >
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import MailchimpProvider from "next-auth/providers/mailchimp"
19
19
import DiscordProvider from "next-auth/providers/discord"
20
20
import AzureADProvider from "next-auth/providers/azure-ad"
21
21
import SpotifyProvider from "next-auth/providers/spotify"
22
+ import CognitoProvider from "next-auth/providers/cognito"
22
23
23
24
// import { PrismaAdapter } from "@next-auth/prisma-adapter"
24
25
// import { PrismaClient } from "@prisma/client"
@@ -143,6 +144,11 @@ export default NextAuth({
143
144
clientId : process . env . SPOTIFY_ID ,
144
145
clientSecret : process . env . SPOTIFY_SECRET ,
145
146
} ) ,
147
+ CognitoProvider ( {
148
+ clientId : process . env . COGNITO_ID ,
149
+ clientSecret : process . env . COGNITO_SECRET ,
150
+ issuer : process . env . COGNITO_ISSUER ,
151
+ } ) ,
146
152
] ,
147
153
jwt : {
148
154
encryption : true ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { OAuthConfig , OAuthUserConfig } from "."
2
+
3
+ export interface CognitoProfile {
4
+ sub : string
5
+ name : string
6
+ email : string
7
+ picture : string
8
+ }
9
+
10
+ export default function Cognito < P extends Record < string , any > = CognitoProfile > (
11
+ options : OAuthUserConfig < P >
12
+ ) : OAuthConfig < P > {
13
+ return {
14
+ id : "cognito" ,
15
+ name : "Cognito" ,
16
+ type : "oauth" ,
17
+ wellKnown : `${ options . issuer } /.well-known/openid-configuration` ,
18
+ profile ( profile ) {
19
+ return {
20
+ id : profile . sub ,
21
+ name : profile . name ,
22
+ email : profile . email ,
23
+ image : profile . picture ,
24
+ }
25
+ } ,
26
+ options,
27
+ }
28
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default async function oAuthCallback(
21
21
const error = new Error ( errorMessage )
22
22
logger . error ( "OAUTH_CALLBACK_HANDLER_ERROR" , {
23
23
error,
24
+ error_description : req . query ?. error_description ,
24
25
body : req . body ,
25
26
providerId : provider . id ,
26
27
} )
You can’t perform that action at this time.
0 commit comments