File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ class GoTrueClient {
373
373
374
374
/// Allows signing in with an ID token issued by certain supported providers.
375
375
/// The [idToken] is verified for validity and a new session is established.
376
- /// This method of signing in only supports [OAuthProvider.google] or [OAuthProvider.apple ] .
376
+ /// This method of signing in only supports [OAuthProvider.google] , [OAuthProvider.apple] or [OAuthProvider.kakao ] .
377
377
///
378
378
/// If the ID token contains an `at_hash` claim, then [accessToken] must be
379
379
/// provided to compare its hash with the value in the ID token.
@@ -395,9 +395,11 @@ class GoTrueClient {
395
395
}) async {
396
396
_removeSession ();
397
397
398
- if (provider != OAuthProvider .google && provider != OAuthProvider .apple) {
399
- throw AuthException ('Provider must either be '
400
- '${OAuthProvider .google .name } or ${OAuthProvider .apple .name }.' );
398
+ if (provider != OAuthProvider .google &&
399
+ provider != OAuthProvider .apple &&
400
+ provider != OAuthProvider .kakao) {
401
+ throw AuthException ('Provider must be '
402
+ '${OAuthProvider .google .name }, ${OAuthProvider .apple .name } or ${OAuthProvider .kakao .name }.' );
401
403
}
402
404
403
405
final response = await _fetch.request (
You can’t perform that action at this time.
0 commit comments