You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going through the password-reset flow for email/password breaks when entering new password
Error
Invalid user
The user associated with this session is invalid.
Configuration
turso db.
mailhog.
Steps
create an account using email and password
verify account
log out
login screen -> reset password
enter email
click reset link and enter new password.
Error shown.
Appears that locals does not have valid user.
try{const{ token }=params;constuserId=awaitvalidatePasswordResetToken(token);const{ user }=locals;console.log('XXX',{ user, userId });if(!user||user.id!==userId){constfeedbacks=getFeedbackObjects([{type: 'error',title: 'Invalid user',message: 'The user associated with this session is invalid.'}]);
The text was updated successfully, but these errors were encountered:
When going through the password-reset flow for email/password breaks when entering new password
Error
Invalid user
The user associated with this session is invalid.
Configuration
Steps
Appears that locals does not have valid user.
The text was updated successfully, but these errors were encountered: