Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider field to token exchange response #225

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [2.2.1] - Released 2024-03-05

### Added
* Added support for `provider` field in code exchange response

### Changed
* Improved message sending and draft create/update performance
* Change default timeout to match API (90 seconds)
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/com/nylas/models/CodeExchangeResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ data class CodeExchangeResponse(
*/
@Json(name = "email")
val email: String? = null,
/**
* The provider that the code was exchanged with.
*/
@Json(name = "provider")
val provider: AuthProvider? = null,
/**
* Only returned if the code was requested using [AccessType.OFFLINE][com.nylas.models.AccessType.OFFLINE].
*/
Expand Down
Loading