mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fixed verification code handler error when user is deleted
This commit is contained in:
parent
02d1680d2e
commit
6c75d12cc7
@ -77,6 +77,8 @@ export const signInVerificationCodeHandler = createVerificationCodeHandler({
|
||||
user = await usersCrudHandlers.adminRead({
|
||||
tenancy,
|
||||
user_id: data.user_id,
|
||||
// This might happen if the user was deleted but the code is still valid
|
||||
allowedErrorTypes: [KnownErrors.UserNotFound],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user