How to set password after authenticate with Moralis provider web3auth?

I have setup authen Moralis with provider web3auth. Login is OK but no password in filed passowrd.
image

How to can I set password after authen with Moralis ?

I use Nextjs.

My code authen:

Thanks

Hey @vampiregrodon,

You can simply use the useMoralis hook to get the user object.

const { user } = useMoralis();

Then, set the password and save.

user.set("password", "my_new_password");
await user.save();

Have a try on this~

1 Like

OH awesome, I got it.

and I have more question :slight_smile:

Thanks Bro.

Great!

I’ll get to you there~

I’ll have this one open in case you found another bug :grinning_face_with_smiling_eyes:

1 Like

Thank you Sir for your help

1 Like

No problem! Happy to help out :grinning_face_with_smiling_eyes:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.