Check out example codes for "oauth with google and vue". It will help you in understanding the concepts better.

Code Example 1

npm install vue-google-oauth2

Learn ReactJs, React Native from akashmittal.com