diff --git a/packages/gotrue/lib/src/gotrue_client.dart b/packages/gotrue/lib/src/gotrue_client.dart index 24046a89..7de0f619 100644 --- a/packages/gotrue/lib/src/gotrue_client.dart +++ b/packages/gotrue/lib/src/gotrue_client.dart @@ -373,7 +373,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.google] or [OAuthProvider.apple]. + /// This method of signing in only supports [OAuthProvider.google], [OAuthProvider.apple] or [OAuthProvider.kakao]. /// /// 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. @@ -395,9 +395,11 @@ class GoTrueClient { }) async { _removeSession(); - if (provider != OAuthProvider.google && provider != OAuthProvider.apple) { - throw AuthException('Provider must either be ' - '${OAuthProvider.google.name} or ${OAuthProvider.apple.name}.'); + if (provider != OAuthProvider.google && + provider != OAuthProvider.apple && + provider != OAuthProvider.kakao) { + throw AuthException('Provider must be ' + '${OAuthProvider.google.name}, ${OAuthProvider.apple.name} or ${OAuthProvider.kakao.name}.'); } final response = await _fetch.request(