verify method
Used to prove possession of the e-mail address.
Normally, this is done to send an authentication email.
Authentication is performed by passing a class inheriting from VerifyAuthProvider as provider
.
Throws Exception if already authenticated.
メールアドレスの所有を証明するために利用します。
通常はこれを実行することで認証用のメールを送信します。
VerifyAuthProviderを継承したクラスをprovider
で渡すことにより、認証を行ないます。
すでに認証されている場合Exceptionをスローします。
Implementation
Future<Authentication> verify(
VerifyAuthProvider provider,
) async {
if (isVerified) {
throw Exception("This account has already been verified.");
}
await adapter.verify(
provider: provider,
onUserStateChanged: notifyListeners,
);
return this;
}