I'm react-native developer, I'm new to Magento, REST and OAuth. I want to use the Magento 2.0 OAuth REST API to login into my app I am getting this token as shown in the image, how can I use this token to do login authentication in react native application?

enter image description here


The token is NOT encoded user-information. There is no way to extract information from it on the client side. The token is a key in a DB table (oauth_token) where you can look up the customer_id tied to the token.

Or you make a second request (/customer/me) with that token to get all user info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.