-
Notifications
You must be signed in to change notification settings - Fork 601
firebase auth Given link is not a valid email link. #6715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
@Willham12 just a note - in react-native-firebase we implement - in javascript! - the same check that firebase-js-sdk performs, and it does not check for apiKey. We are not currently in our official implementation calling through to firebase-android-sdk's isSignInWithEmailLink method. You state "As you can see we are checking if the given email link is an signin email link before we are signin with email link" but from a firebase-android-sdk perspective this is not completely correct since that method is not called. However, I know you were testing a change to react-native-firebase where you did in fact call firebase-android-sdk's |
The firebase android sdk not checking if api key param is provided. |
Hi @Willham12, I tried reproducing the behavior you raised and I wasn't able to encounter the issue. The Could you share an MCVE and steps to reproduce and clarify the issue? |
What i do is to call this function with this example link: String emailLink = "https://<domain>?mode=signIn&oobCode=<oobCode>";
if (firebaseAuth.isSignInWithEmailLink(emailLink) {
firebaseAuth.signInWithEmailLink("[email protected]", emailLink)
} |
The Firebase Native Android SDK does check for the
As mentioned in this comment .
This issue is best handled by the React Native Firebase team. That said, I'll be closing this issue now. Let me know if there's any misunderstanding so we can re-open the issue. Thanks! |
@lehcar09 can you please try with this link |
@Willham12 there appears to be a misunderstanding if you want firebase-android-sdk team to try that link. Why? Because they have already confirmed to you that they check if apiKey is in the link:
So your test will fail, and they have told you it will fail, on firebase-android-sdk. In firebase-js-sdk and firebase-ios-sdk it will pass. This is a platform difference, but not something firebase-android-sdk needs to address per se. As they said, there is no issue here. In react-native-firebase we need to check on android platform if apiKey is in the email link and fail if not |
We created an issue on react-native package and have found out that the
apiKey
is required on android but not on ios. The functionisSignInWithEmailLink
is not checking if an apiKey is provided. As you can see we are checking if the given email link is an signin email link before we are signin with email link.Let me know if you need more questions.
The text was updated successfully, but these errors were encountered: