Coder Social home page Coder Social logo

Comments (4)

EmilAlipiev avatar EmilAlipiev commented on May 31, 2024

I found the answer so quickly and forked your code. if you want i can send you a PR. function would like as below according to explained here


       /// <summary>
        /// Using the provided Id token from google signin, get the firebase auth with token and basic user credentials.
        /// </summary>
        /// <param name="authType"> The auth type. </param>
        /// <param name="IdToken"> The Id token retrieved from google signin </param>
        /// <returns> The <see cref="FirebaseAuth"/>. </returns>
        public async Task<FirebaseAuthLink> SignInWithIdTokenAsync(string IdToken)
        {
            var providerId = this.GetProviderId(FirebaseAuthType.Google);
            var content = $"{{\"postBody\":\"id_token={IdToken}&providerId={providerId}\",\"requestUri\":\"http://localhost\",\"returnSecureToken\":true}}";

            return await this.ExecuteWithPostContentAsync(GoogleIdentityUrl, content).ConfigureAwait(false);
        }

from firebase-authentication-dotnet.

EmilAlipiev avatar EmilAlipiev commented on May 31, 2024

I hardcoded as google because i didnt see Idtoken is used beside google because facebook api returns access token as in the documentation but it can be also dynamic like your access token function

from firebase-authentication-dotnet.

bezysoftware avatar bezysoftware commented on May 31, 2024

Sure, make it a PR and I'll merge it. Just rename the method to make it clear it's google only, something like SignInWithGoogleIdTokenAsync

from firebase-authentication-dotnet.

adolgov avatar adolgov commented on May 31, 2024

Hi,
I'm wondering if there are any developments on this? I'm having the same issue, and am wondering if there's a good way to be able to sign in with the token that the standard Android GoogleSignInAccount provides.

from firebase-authentication-dotnet.

Related Issues (20)

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.