Shared Customer Login on my third-party app

Hello everybody,

Just to make it more simple, I’ve wrote my problem in some steps:

  1. Image that you have an app named XYZ that is installed and running on your computer;

  2. Your customer Login is the same on XYZ app and on your Customer Account on XYZ website;

  3. On the XYZ app dashboard you also see the same info you see on your Customer Account on XYZ website.

Which API would you recommend to perform this kind of action? I imagine I need an access token and a refresh token.

Hope to hear from all of you!