I'm trying to log in users from a 3rd party apps

Hi,

I’m building a new app, but I need to keep the login of Wix. I used an wix-http-request linked to a wix-modules that i created that return if a user i logged or not. When I use the module from the front end of my Wix Website, everything work, but as soon as I use the http request, it returns no user. Is it normal? Does Wix block users info from going through an http-request?

Thank you.

Have a read of the users backend api reference for register as it shows a register with third party option there with all the code listed for you already.
https://www.wix.com/corvid/reference/wix-users-backend.html#register

I already read all the users bakend api, I tried it and it doesn’t work. I can’t access the user. When I try, it return a None object. The user is not logged in, but when I go on my Website Wix, they’re is a logged in user. My new website is not with Wix, so I can’t use the wix function. I tried with ajax and fetch and no success.

If your website is not with Wix then you will have to expose Wix to your own website through the use of HTTP functions.
https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

Otherwise, as you state that your new website is not with Wix, then I suggest that you contact the support pages of your new website provider for more help about integrating Wix into your new site, as Wix won’t help you with other companies websites like WordPress for example.

Plus, the Fetch API is better to use instead of AJAX as it is outdated now and Fetch needs much less code to do the same thing as if you used AJAX.