Check out example codes for "how to get token oauth2.0 java example response". It will help you in understanding the concepts better.

Code Example 1

{
  "access_token" : "4484e52dc4744374aced826a4543cd28948816ff",
  "token_type" : "Bearer",
  "expires_in" : 1295999
}

Learn ReactJs, React Native from akashmittal.com