We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d143ef commit 2ca0662Copy full SHA for 2ca0662
packages/auth/lib/multiFactor.js
@@ -44,7 +44,8 @@ export class MultiFactorUser {
44
async unenroll(enrollmentId) {
45
await this._auth.native.unenrollMultiFactor(enrollmentId);
46
47
- // We need to reload the user otherwise the changes are not visible
48
- return reload(this._auth.currentUser);
+ if (this._auth.currentUser) {
+ return reload(this._auth.currentUser);
49
+ }
50
}
51
0 commit comments