verifyOob method
Verifies an out-of-band challenge (SMS, Email, Push) and exchanges the
mfa_token for Credentials.
oobCode comes from the MfaChallenge returned by challenge (or the
MfaEnrollmentChallenge returned by an enrollment). Provide bindingCode
when the challenge's bindingMethod is prompt.
Optionally pass scopes and audience to request specific scopes and an
API audience for the returned Credentials. scopes defaults to
{'openid', 'profile', 'email'}.
Implementation
Future<Credentials> verifyOob({
required final String oobCode,
final String? bindingCode,
final Set<String> scopes = const {'openid', 'profile', 'email'},
final String? audience,
}) =>
Auth0FlutterWebPlatform.instance.mfaVerify(
_mfaToken,
MfaVerifyOptions(
mfaToken: _mfaToken,
grantType: MfaVerifyGrantType.oob,
oobCode: oobCode,
bindingCode: bindingCode,
scopes: scopes,
audience: audience));