I have a react native app that renders a WebView of a Web app
The react native app uses Cognito and Amplify for authentication. The web app also uses the same Cognito and Amplify for authentication.
I have a login flow built with in the react native that has email/password login and social media federated Oauth logins. Both these login flows successfully work in the react native space and return a
CognitoUserSession {
idToken: CognitoIdToken,
refreshToken: CognitoRefreshToken,
accessToken: CognitoAccessToken,
clockDrift: 0
}
When the react native app renders the WebView the web app is unauthenticated. I am able to pass the CognitoUserSession
data into the WebView successfully. Unfortunately, I don't see a way to have Amplify
re-authenticate with this session.