Phoenix + Flutter: How to get the User ID from Access Token in Pow?

I’m new to user authentication via Phoenix API on Flutter Android.

I used Pow to make a user API which outputs renewal_token and access_token.

How can I use the access_token to get the user’s id so that I can make a GET request of his products in the API below?

Or is there a way to send the access token back to Phoenix to get the products of the user_id associated with that token?

final response = await dio.get('$userId');

ChatGPT is not yet updated on Pow.

I got stuck at trying to fetch user info from the Pow access token, so I switched to using Guardian ID token through this tutorial: and this repo

After login, Flutter just gets the user’s account UUID then passes that around between Flutter widgets.