Skip to content

Commit

Permalink
Add account_id to the grant model for migrated accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
kraju3 committed Sep 19, 2024
1 parent 2479dec commit 3c935e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nylas/models/grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Grant:
Attributes:
id: Globally unique object identifier.
provider: OAuth provider that the user authenticated with.
account_id: Globally unique identifier for your v2 account that has been migrated using our migration APIs.
scope: Scopes specified for the grant.
created_at: Unix timestamp when the grant was created.
grant_status: Status of the grant, if it is still valid or if the user needs to re-authenticate.
Expand All @@ -31,6 +32,7 @@ class Grant:
id: str
provider: str
scope: List[str] = field(default_factory=list)
account_id: Optional[str] = None
grant_status: Optional[str] = None
email: Optional[str] = None
user_agent: Optional[str] = None
Expand Down

0 comments on commit 3c935e7

Please sign in to comment.