My iOS app integrates with Firebase Authentication and offers Google sign-in with it. I am observing that a few of our customers fail to retrieve the Firebase ID token through getIDToken
(with forcingRefresh NO) in Firebase Auth SDK.
Area: FIRAuthErrorDomain Code: 17021 NSLocalizedDescription: The consumer's credential is now not legitimate. The consumer should check in once more.
What’s attention-grabbing is that it (virtually)solely occurs with the consumer who indicators in by Google and it does not for customers who use e mail/password or Apple sign-in.
My understanding of the ID token is that, once we get it through Firebase SDK, it’s refreshed below the hood with the refresh token if the present ID token is expired (so principally it will not expire perpetually or for therefore lengthy till the refresh token expires at the very least).
I additionally learn this very helpful article. In line with the article, Third-Celebration OAuth Entry Tokens
(on this time case Google OAuth entry token
?) just isn’t used to authenticate to Firebase so its expiration is most probably NOT the reason for the difficulty.
Do you’ve gotten any thought why the hell it’s taking place solely in Google sign-in?