We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc08c1 commit 29e4df2Copy full SHA for 29e4df2
workos/types/user_management/oauth_credentials.py
@@ -1,11 +1,18 @@
1
-from typing import List
+from typing import Literal, List
2
from workos.types.workos_model import WorkOSModel
3
4
+OauthCredentialProviders = Literal[
5
+ "AppleOauth",
6
+ "GitHubOauth",
7
+ "GoogleOauth",
8
+ "MicrosoftOauth",
9
+]
10
+
11
12
class OauthCredentials(WorkOSModel):
13
"""Representation of a Oauth credentials"""
14
- provider: str
15
+ provider: OauthCredentialProviders
16
access_token: str
17
refresh_token: str
18
expires_at: int
0 commit comments