Reliable Alternative for Google Sign-In with AWS Cognito on iOS (React Native)

I’m developing a React Native application using AWS Cognito Hosted UI with Google Sign-In for authentication.My setup uses:

React Native: 0.76.9

Library: react-native-app-auth version 8.0.3

Xcode Minimum Deployment Target: 13.4

The same implementation works perfectly on Android, but on iOS it behaves inconsistently.

Here’s the issue:

Login flow completes successfully.

However, access tokens and ID tokens are often null or malformed on iOS.

This results in 401 Invalid Token errors when calling backend APIs.

I’ve also tried using react-native-inappbrowser-reborn, but the issue persists.I’m currently using both the client ID and reverse client ID correctly as callback URLs in Cognito’s configuration".

So my questions are:

"Is it better to continue using react-native-app-auth and @react-native-google-signin/google-signin with improved configuration for iOS?

Or is there a more reliable approach/library for handling Cognito authentication and token management on iOS (especially for Hosted UI with Google Sign-In)?

Looking forward to any suggestions or best practices from those who’ve implemented Cognito + Google Sign-In on iOS using React Native.If you’ve found a stable setup for managing tokens and callbacks on iOS, please share your approach". Thank you!

Thank you for your post. It appears that you are experiencing a behavioral inconsistency between iOS and another non-Apple platform, which aligns with the issue you mentioned regarding the React Native.

I recommend reaching out to the React Native support team to inquire about their suggestions for resolving this issue.

You should check with the support resources provided by the 3rd party to get assistance with their software.

Unless another developer in the forums has experience with the third-party and can provide assistance.

Good luck on your project.

Albert Pascual
  Worldwide Developer Relations.

Reliable Alternative for Google Sign-In with AWS Cognito on iOS (React Native)
 
 
Q