Skip to content

Commit 56f4e98

Browse files
aws-ethanLiu, Yijun
andauthored
💄 style: integrate Amazon Cognito for user authentication (lobehub#7472)
* feat: integrate Amazon Cognito for user authentication * fix --------- Co-authored-by: Liu, Yijun <liuyijun@amazon.com>
1 parent 7ddf3a0 commit 56f4e98

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Cognito from 'next-auth/providers/cognito';
2+
3+
const provider = {
4+
id: 'cognito',
5+
provider: Cognito({
6+
clientId: process.env.AUTH_COGNITO_ID,
7+
clientSecret: process.env.AUTH_COGNITO_SECRET,
8+
issuer: process.env.AUTH_COGNITO_ISSUER,
9+
}),
10+
};
11+
12+
export default provider;

src/libs/next-auth/sso-providers/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Logto from './logto';
1212
import MicrosoftEntraID from './microsoft-entra-id';
1313
import WeChat from './wechat';
1414
import Zitadel from './zitadel';
15+
import Cognito from "./cognito";
1516

1617
export const ssoProviders = [
1718
Auth0,
@@ -28,4 +29,5 @@ export const ssoProviders = [
2829
WeChat,
2930
Keycloak,
3031
Google,
32+
Cognito
3133
];

0 commit comments

Comments
 (0)