Skip to content

Commit 29e4df2

Browse files
Add OauthCredentialProviders
1 parent bdc08c1 commit 29e4df2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

workos/types/user_management/oauth_credentials.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
from typing import List
1+
from typing import Literal, List
22
from workos.types.workos_model import WorkOSModel
33

4+
OauthCredentialProviders = Literal[
5+
"AppleOauth",
6+
"GitHubOauth",
7+
"GoogleOauth",
8+
"MicrosoftOauth",
9+
]
10+
411

512
class OauthCredentials(WorkOSModel):
613
"""Representation of a Oauth credentials"""
714

8-
provider: str
15+
provider: OauthCredentialProviders
916
access_token: str
1017
refresh_token: str
1118
expires_at: int

0 commit comments

Comments
 (0)