Skip to content

Commit e6718fb

Browse files
Refactor types and rearrange optional attribute
1 parent 73bdedd commit e6718fb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

workos/types/user_management/authentication_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class AuthenticationResponse(_AuthenticationResponseBase):
2929
impersonator: Optional[Impersonator] = None
3030
organization_id: Optional[str] = None
3131
user: User
32-
oauth_tokens: Optional[OAuthTokens] = None
3332

3433

3534
class AuthKitAuthenticationResponse(AuthenticationResponse):
3635
"""Representation of a WorkOS User and Organization ID response."""
3736

3837
impersonator: Optional[Impersonator] = None
38+
oauth_tokens: Optional[OAuthTokens] = None
3939

4040

4141
class RefreshTokenAuthenticationResponse(_AuthenticationResponseBase):

workos/types/user_management/oauth_tokens.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Literal, List
1+
from typing import Literal, Sequence
2+
23
from workos.types.workos_model import WorkOSModel
34

45
OAuthTokensProvidersType = Literal[
@@ -16,4 +17,4 @@ class OAuthTokens(WorkOSModel):
1617
access_token: str
1718
refresh_token: str
1819
expires_at: int
19-
scopes: List[str]
20+
scopes: Sequence[str]

0 commit comments

Comments
 (0)