Skip to content

Commit b1be655

Browse files
committed
fix: add check for validatePromise for passwordless environments
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
1 parent 78c6c23 commit b1be655

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/password-confirmation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ export function addPasswordConfirmationInterceptors(axios: AxiosInstance): void
132132
return response
133133
}
134134

135+
if (!validatePromise) {
136+
logger.debug('Password confirmation not required', { response })
137+
return response
138+
}
139+
135140
logger.debug('Password confirmation succeeded', { response })
136141
window.nc_lastLogin = Date.now() / 1000
137142
validatePromise.resolve()

0 commit comments

Comments
 (0)