Authenticate log-ins

Hey guys,

We are attempting to validate user log ons using Corvid, but are stuck attempting to apply the session token we received from wixUsers.login. The code breaks when we call wixUsers.applySessionToken. We don’t know if there is a better way to accomplish this, or if we are even supposed to use Corvid to validate log-ins of a 3rd party application in this m​anner?

Any help will be appreciated.

Here is a screenshot to go along with the above question.

Have you read and seen the examples in the Wix API Reference for Wix Users and Wix Users Backend?

https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.html#applySessionToken

https://www.wix.com/corvid/reference/wix-users-backend.html
https://www.wix.com/corvid/reference/wix-users-backend.html#approveByToken
https://www.wix.com/corvid/reference/wix-users-backend.html#generateSessionToken

Finally, as you are trying to implement it through http functions, then have a look at this previous post.
https://www.wix.com/corvid/forum/community-discussion/expose-a-rest-api-for-site-members-to-login-similar-to-a-3rd-party-authentication
https://www.wix.com/corvid/forum/community-discussion/member-s-login-session-token-help-better-wix-coding-from-lessons-learned