From d6b87fd56608116a60c3aa5148ea00d0fd8fa285 Mon Sep 17 00:00:00 2001 From: Haris Chaniotakis Date: Wed, 2 Mar 2022 11:36:27 +0200 Subject: [PATCH] feat(types,clerk-js): Introduce Notion OAuth Introduce declarations for supporting Notion OAuth --- packages/clerk-js/src/ui/common/constants.ts | 4 ++++ packages/types/src/oauth.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/clerk-js/src/ui/common/constants.ts b/packages/clerk-js/src/ui/common/constants.ts index fb81a161cab..753ede80c0f 100644 --- a/packages/clerk-js/src/ui/common/constants.ts +++ b/packages/clerk-js/src/ui/common/constants.ts @@ -104,6 +104,10 @@ export const OAUTH_PROVIDERS: OAuthProviders = Object.freeze({ id: 'microsoft', name: 'Microsoft', }, + notion: { + id: 'notion', + name: 'Notion', + }, }); export function getOAuthProviderData( diff --git a/packages/types/src/oauth.ts b/packages/types/src/oauth.ts index 82136a75f6f..2a872de8c15 100644 --- a/packages/types/src/oauth.ts +++ b/packages/types/src/oauth.ts @@ -11,7 +11,8 @@ export type OAuthProvider = | 'linkedin' | 'dropbox' | 'bitbucket' - | 'microsoft'; + | 'microsoft' + | 'notion'; export type OAuthStrategy = `oauth_${OAuthProvider}`;