How to use VTEX as Identity Provider?

I need to use VTEX as an Identity Provider to allow users to log in to a separate application using their existing credentials from my VTEX store. How can I validate users against the existing user data in my VTEX store and implement this integration?

The flow should be similar to the one I have in the store but from other app. I’m using OTP for log in in the store if matters.
Each client should be able to log in and my other app should be able to identify the user with a token or client_id retrieved from vtex.

This might be useful:

Could you clarify what you mean by “users” – is it shoppers or store operators?

Thanks for you’re answer, with users I mean shoppers.
I was looking that documentation before but I can’t get how I could validate the shoppers because any endpoint is asking for credentials to log in. Can you guide me with that? LMK If additional info is needed

I haven’t used this before, so I don’t have enough context to guide you.

But I assume that once you have the app installed to your VTEX account, you should be able to make requests to the endpoint using any Authentication alternative.

Maybe you need to go to the Admin and set up an OAuth client first, in Account Settings > OAuth Provider.