I am using react-google-login (https://www.npmjs.com/package/react-google-login) tool to sign in with Google. There are some issues:
- GoogleLogin gives me two type of object:
profileObjandtokenObj. In 'tokenObj' I can getaccess_tokenand so on. - If I use
accessType = 'code'I can get theauth_code. But this prevents me getting theprofileObjandtokenObj. - Documentation says if use
accessType = 'permission code'then I can get both thetokenObjandauth_code. But its not true. This is not happening.
Now I want to get both tokenObj and auth_code.
Is it really possible to do so? How can I get the auth_code parallelly with profileObj and tokenObj?