I have a project where users are authenticated and signed in via Cognito using the amplify Auth module. I also need those users to be able to provide me with authorization for some actions from their Google accounts. I'm using Googles OAuth2 client from their googleapis module.
Once authorized via Googles auth URL, the user gets redirected back to a page on my webapp. However, seems like Auth.currentAuthenticatedUser() shows as not authenticated anymore, so I'm unable to call the APIs I need at that point.
In the console, I see a warning message that some cookies are misusing the same-site property. I suspect that this has something to do with the issue.
Any help would really be appreciated. Thanks