Hello Wix community.
I’m working on a companion app for my Wix page to login using their Wix member accounts to access additional content. I looked into the wix-member-backend documentation page but I don’t see anywhere I can allow members to login using their email-password pair or with SSO. The wix-member front end ap i would have what I’m looking for if it was not bound to the front end.
Does anyone have an idea on how to achieve this behavior?
Hello, if I’m understanding correctly what you will want to look at is exposing your site as an API
I haven’t personally set up an external login flow, but I would think triggering a function this way would be the likely place to start investigating.
Right Amanda! I do want to expose my site as an API. how ever I want to protect those API functions so only authenticated users in the app can run them. I cannot simply embed a secret from the Secret Manager into the companion app to authenticate because the key could be extracted from the app.
Take a look at this for your consideration: HMAC authentication velo package
And here is a blog post that goes into more detail: Keeping your custom API secure
Let me know what you think about this path and your use case