I’m implementing login with VTEX on a Mobile App. Currently, my web store contains just login with OTP. I found that I can replicate the OTP using the api with this flow.
- Create auth token https://{{account}}.myvtex.com/api/vtexid/pub/authentication/startlogin [POST]
- Send OTP code https://{{account}}.myvtex.com/api/vtexid/pub/authentication/accesskey/send [POST]
- Validate OTP and return user Token: https://{{account}}.myvtex.com/api/vtexid/pub/authentication/accesskey/validate [POST]
I test this and it works. But I can’t find specific documentation of this flow in here
Is this a valid approach to use to auth my users? at the end VTEX is making all validations but I’m handling a different frontend.