Sync user signup via Moralis web3auth and user signup via call api parse server /users

I have web authen via Moralis web3auth and mobile app authen via call API parse-server (https://docs.parseplatform.org/rest/guide/#signing-up)

curl -X POST \
  -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -H "X-Parse-Revocable-Session: 1" \
  -H "Content-Type: application/json" \
  -d '{"username":"cooldude6","password":"p_n7!-e8","phone":"415-392-0202"}' \
  https://YOUR.PARSE-SERVER.HERE/parse/users

I thought I can sync by ethAddress but they get 2 ethAddress even I login only 1 account gmail for both web and app.

How to can i login web with google account and login app with this google account same 1 user in system?

What can I do ?

Thanks for reading

Iā€™m not entirely sure what you mean here unfortunately :thinking:

Can you rephrase it? Also looks like your password is exposed :eyes: I think best if you make edits if that is the case

This is sample password, np.

I want to sign up on web and login in mobile app with this account.
Web sign in via Moralis web3auth
Mobile login via parse API above

API parse need user and password which I tried to set on signup account via web(Moralis web3auth)

Do you understand me?

:slight_smile:

I could not found Unity SDK authen Moralis provider Web3auth. I have app unity on device build with unity

I using api parse server for login with username and pass but why i login same google account and got another address wallet

Same login only one google account:

  1. Web : wallert address 1( authen via Moralis with provider web3auth)

  2. Unity app: wallet address 2( i generate wallet address from public key return from google after authenticated direct web3auth without Moralis)

Why ?

How to sync user mobile device and web ?

Hi @vampiregrodon

when you use web3auth for gmail authentication they generate a wallet and private key on their servers connecting to your email. Their email login feature assumes you do not have an wallet so it creates one for you and you use the created wallet address for authentication and signature.

But login with parse gmail is not connected in any way to the web3auth email authentication. So they are considered be different.

I think you will have to write your custom authentication logic to connect parse email password login with web3auth login.

Yes, Johnversus.

I clear problems. Thanks.

When use web3auth for gmail authentication they give me a public_key not wallet address.
I manual generate wallet address from this public_key and save to user table.
I thought wallet address was same for 2 way authentication(web and direct web3) but not.

Now I must build Unity authentication via web3auth with user and pass ?

1 Like

Yes, that is the possible solution.

Can you share Document or Link about login to connect Parse Server via web3auth?

I could not found anything about it.

Thanks

I hope this is the doc you are looking for.
https://v1docs.moralis.io/moralis-dapp/users/web3-login/web3auth

You can also find the src code of the v1 sdk on github if case if you want to take a look at it.

I using Moralis v2 with self-host and code web3auth ok on my website.


My problem:
How to config same above code for Unity ? Could not found any sample about this.
Just have sample Unity direct to Web3Auth.

I need Unity -> Moralis-> Web3Auth. Moralis wrapper web3auth same code on my web.

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