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('http://192.168.100.145:4000/api/products?userId=$userId');
ChatGPT is not yet updated on Pow.