Skip to content

🚀 [auth] Allow passing in raw nonce when using signInWithCredential #8346

Open

Description

@henribru

When using signInWithCredential, there doesn't appear to be a way to pass in the raw nonce, which is required if you're using an id token that contains a nonce: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/auth/OAuthProvider.CredentialBuilder#setIdTokenWithRawNonce(java.lang.String,java.lang.String)

Maybe it could just be added to the AuthCredential interface and then passed down into the native signInWithCredential along with the provider ID, token and secret

Activity

  1. mikehardy commented on Feb 18, 2025

    @mikehardy
    Collaborator

    Hey @henribru - how do they do it in firebase-js-sdk ? Our "job" - in the sense of discriminating between things we can do here and things we cannot - is to implement the firebase-js-sdk APIs, either directly binding them to identical APIs in firebase-ios-sdk / firebase-android-sdk or doing internal things to "bend" what an firebase-js-sdk-compatible API implementation gives us into whatever shape the native firebase-android-sdk / firebase-ios-sdk make available to us, so that we end up with similar results

    So always best to start with the firebase-js-sdk guides and reference docs to see how they would to it as that will have to be our API, then check the native ios/android docs make available to see if it is feasible in the native context

  2. henribru commented on Feb 18, 2025

    @henribru
    ContributorAuthor
  3. github-actions commented on Mar 18, 2025

    @github-actions
  4. added
    impact: web-implementationAn API in RNFB does not conform to the Firebase Web SDK
    Keep Openavoids the stale bot
    and removed on Apr 2, 2025
  5. 2020gaurav commented on Dec 18, 2025

    @2020gaurav

    Just following up on this issue, is there any plans to pick this us ? This is blocking us from using nonce verification. We can't disable it as that can lead to potential replay attacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions