diff --git a/packages/gotrue/lib/src/gotrue_client.dart b/packages/gotrue/lib/src/gotrue_client.dart index 527287be..b229dcfb 100644 --- a/packages/gotrue/lib/src/gotrue_client.dart +++ b/packages/gotrue/lib/src/gotrue_client.dart @@ -374,7 +374,6 @@ 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], [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. @@ -384,9 +383,6 @@ class GoTrueClient { /// /// [captchaToken] is the verification token received when the user /// completes the captcha on the app. - /// - /// This method is experimental. - @experimental Future signInWithIdToken({ required OAuthProvider provider, required String idToken, @@ -394,14 +390,6 @@ class GoTrueClient { String? nonce, String? captchaToken, }) async { - if (provider != OAuthProvider.google && - provider != OAuthProvider.apple && - provider != OAuthProvider.kakao && - provider != OAuthProvider.keycloak) { - throw AuthException('Provider must be ' - '${OAuthProvider.google.name}, ${OAuthProvider.apple.name}, ${OAuthProvider.kakao.name} or ${OAuthProvider.keycloak.name}.'); - } - final response = await _fetch.request( '$_url/token', RequestMethodType.post,