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

1 Answer 1


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.

  • 1
    In Magento 2.4.4 data is not stored in oauth_token table Commented Sep 15, 2022 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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