
Since most of my users log in using MagicUrl, I also hope that users can set a password after logging in so that they can log in with it in exceptional circumstances. Now, I want to check if the user has already set their password to determine whether to use the updatePassword or createRecovery and updateRecovery methods to set their password. How to check?

Supplement: The user has already logged in.

determine whether to use the updatePassword or createRecovery and updateRecovery methods
You should be able to use updatePassword even if they don't have a password. you can pass anything for the password param.
See https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePassword
I want to check if the user has already set their password
Try looking at the passwordUpdate
attribute on the User.
Recommended threads
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- PR Review and Issue Assign?
I am not familiar with how things work here. I know that Issue have to be assigned before solving problem, It is for not wasting contributors time but I like t...
- Need help with clerk auth
Im having issue with auth
