Giter Site home page Giter Site logo

Comments (7)

rithik-dev avatar rithik-dev commented on June 2, 2024 1

Hi @mufarrah , the update is live (v1.0.6). Try using the latest version and set the linkWithExistingUser to true, that'll internally call the linkWithCredential method, and work as expected.

Thanks for reporting this issue.

from firebase_phone_auth_handler.

rithik-dev avatar rithik-dev commented on June 2, 2024

Hey @mufarrah, what I can do is expose a boolean something like linkWithExistingUser, that calls the linkWithCredential instead of calling signInWithCredential. I think that'll fix this issue.

from firebase_phone_auth_handler.

mufarrah avatar mufarrah commented on June 2, 2024

Hey @mufarrah, what I can do is expose a boolean something like linkWithExistingUser, that calls the linkWithCredential instead of calling signInWithCredential. I think that'll fix this issue.

Could i have a code snippet that explains how to merge this suggested change with the existing code of the package please ??

from firebase_phone_auth_handler.

rithik-dev avatar rithik-dev commented on June 2, 2024

Would have a flag that would call the linkWithCredential method instead of the signInWithCredential.

from firebase_phone_auth_handler.

rithik-dev avatar rithik-dev commented on June 2, 2024

I'll push out a new release today, that'll address this issue.

from firebase_phone_auth_handler.

mufarrah avatar mufarrah commented on June 2, 2024

Hey well done , thanks for the update . I'll try it out , does that works on web as well ?? because im using web. and from which widget i call the linkWithCredential ??

from firebase_phone_auth_handler.

rithik-dev avatar rithik-dev commented on June 2, 2024

The boolean can be passed on the FirebasePhoneAuthHandler widget, and right now it does not work on the web. I was not able to get the authCredential from web sign in, and hence, cannot call the method to link.

On the web, as soon as the OTP is confirmed, the user is signed in automatically.

from firebase_phone_auth_handler.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.