Skip to content

Commit a55d524

Browse files
committed
feat: change order verification
1 parent 5f34844 commit a55d524

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class GoTrueClient {
382382

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

413413
final response = await _fetch.request(

0 commit comments

Comments
 (0)