File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,6 @@ class GoTrueClient {
374
374
375
375
/// Allows signing in with an ID token issued by certain supported providers.
376
376
/// The [idToken] is verified for validity and a new session is established.
377
- /// This method of signing in only supports [OAuthProvider.google] , [OAuthProvider.apple] , [OAuthProvider.kakao] or [OAuthProvider.keycloak] .
378
377
///
379
378
/// If the ID token contains an `at_hash` claim, then [accessToken] must be
380
379
/// provided to compare its hash with the value in the ID token.
@@ -384,24 +383,13 @@ class GoTrueClient {
384
383
///
385
384
/// [captchaToken] is the verification token received when the user
386
385
/// completes the captcha on the app.
387
- ///
388
- /// This method is experimental.
389
- @experimental
390
386
Future <AuthResponse > signInWithIdToken ({
391
387
required OAuthProvider provider,
392
388
required String idToken,
393
389
String ? accessToken,
394
390
String ? nonce,
395
391
String ? captchaToken,
396
392
}) async {
397
- if (provider != OAuthProvider .google &&
398
- provider != OAuthProvider .apple &&
399
- provider != OAuthProvider .kakao &&
400
- provider != OAuthProvider .keycloak) {
401
- throw AuthException ('Provider must be '
402
- '${OAuthProvider .google .name }, ${OAuthProvider .apple .name }, ${OAuthProvider .kakao .name } or ${OAuthProvider .keycloak .name }.' );
403
- }
404
-
405
393
final response = await _fetch.request (
406
394
'$_url /token' ,
407
395
RequestMethodType .post,
You can’t perform that action at this time.
0 commit comments