Skip to content

Commit

Permalink
feat: change order verification
Browse files Browse the repository at this point in the history
  • Loading branch information
micktonnelier committed Oct 21, 2024
1 parent 5f34844 commit a55d524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/gotrue/lib/src/gotrue_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class GoTrueClient {

/// Allows signing in with an ID token issued by certain supported providers.
/// The [idToken] is verified for validity and a new session is established.
/// This method of signing in only supports [OAuthProvider.keycloak], [OAuthProvider.google], [OAuthProvider.apple] or [OAuthProvider.kakao].
/// This method of signing in only supports [OAuthProvider.google], [OAuthProvider.apple], [OAuthProvider.kakao] or [OAuthProvider.keycloak].
///
/// If the ID token contains an `at_hash` claim, then [accessToken] must be
/// provided to compare its hash with the value in the ID token.
Expand All @@ -402,12 +402,12 @@ class GoTrueClient {
String? nonce,
String? captchaToken,
}) async {
if (provider != OAuthProvider.keycloak &&
provider != OAuthProvider.google &&
if (provider != OAuthProvider.google &&
provider != OAuthProvider.apple &&
provider != OAuthProvider.kakao) {
provider != OAuthProvider.kakao &&
provider != OAuthProvider.keycloak) {
throw AuthException('Provider must be '
'${OAuthProvider.keycloak.name}, ${OAuthProvider.google.name}, ${OAuthProvider.apple.name} or ${OAuthProvider.kakao.name}.');
'${OAuthProvider.google.name}, ${OAuthProvider.apple.name}, ${OAuthProvider.kakao.name} or ${OAuthProvider.keycloak.name}.');
}

final response = await _fetch.request(
Expand Down

0 comments on commit a55d524

Please sign in to comment.