What is the most secure method of automatically creating password for an account on WIX CRM for a user who Authenticates with Google.
i.e. the user info (email, name, etc) is received from Google and then submitted to Wix CRM to create a new member account on the website.
Note when user info is received from Google we receive no password as expected. Wix CRM requires a password be provided to create a new member. How do we create the password securely in this scenario?
https://www.wix.com/velo/reference/wix-members-backend/authentication/generatesessiontoken
This appears to solve the problem now! It generates a random password and takes just email.
Same problem
Hi,
I believe you are confusing wix-crm with wix-users:
Wix-crm is used to manage the contacts of your site (e.g - send emails to contacts).
Wix-users is used to manage the visitors of your site (e.g - manage login, approve members).
If you wish to add a user to your contacts list, you don't need a password, check out the API I linked above.
Regarding the code you shared, you tried to use wixUsers.register() but if the user registered already with google auth, you shouldn't register him again.
I hope it helped you,
Or :)
Hi Mike,
When using social login there is no need to manage the registration yourself, why do you need the password from google auth?
Anyway, this isn't possible to get the password if the user registered using google auth.
Or
any thoughts on this Or ?
Hi,
Wix CRM doesn't require a password to create a new contact, check out the API here.
Please share your code and the error message.