Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Make nonce optional #68

Merged
merged 3 commits into from
May 9, 2022
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
@@ -1,3 +1,6 @@
## [next]
- fix: `OpenIDConnectCredentials`'s `nonce` parameter optional

## [0.2.1]

- fix: Retry access token refresh when offline ([#63](https://github.com/supabase-community/gotrue-dart/pull/63))
Expand Down
4 changes: 2 additions & 2 deletions lib/src/open_id_connect_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OpenIDConnectCredentials {
/// before the initial grant is started.
/// You should check the OpenID Connect specification for details.
/// https://openid.net/developers/specs/
final String nonce;
final String? nonce;

/// `provider` is the provider of the user.
final Provider? provider;
Expand All @@ -22,7 +22,7 @@ class OpenIDConnectCredentials {

const OpenIDConnectCredentials({
required this.idToken,
required this.nonce,
this.nonce,
this.provider,
this.clientId,
this.issuer,
Expand Down