Skip to content

Commit

Permalink
Add migration grant props (#387)
Browse files Browse the repository at this point in the history
* Add account_id to the grant object

* Revert "Add account_id to the grant object"

This reverts commit 0483e58.

* Add account_id to the grant model for migrated accounts
  • Loading branch information
kraju3 authored Sep 24, 2024
1 parent a53c164 commit 7757cc6
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 7757cc6

Please sign in to comment.