Git Product home page Git Product logo

Comments (5)

kevmoo avatar kevmoo commented on August 17, 2024 1

@marcojakob – please file an issue here - https://github.com/firebase/firebase-js-sdk/issues/new

I'll see what I can learn internally...

from firebase-dart.

Janamou avatar Janamou commented on August 17, 2024

@marcojakob Thanks for that, I will take a look.

from firebase-dart.

kevmoo avatar kevmoo commented on August 17, 2024

@marcojakob I believe AuthCredential is meant to be opaque.

Looking at the JS API, I don't see anything exposed in the way you suggest - https://firebase.google.com/docs/reference/js/firebase.auth.AuthCredential

I know it's frustrating, but if we try to expose fields that aren't in the official JS API, we risk random breakage by exposing implementation details.

from firebase-dart.

marcojakob avatar marcojakob commented on August 17, 2024

@kevmoo This is the only place I found to get hold of the GitHub Access Token (if you know some other way, please let me know). I need this to make API requests to the GitHub API.

It actually is mentioned in the JS API in the example of GithubAuthProvider. There is the following line:

    // This gives you a GitHub Access Token.
    var token = result.credential.accessToken;

I think access to to the token at that point is clearly intended and needed. Maybe it is something that should be added to the JS API documentation. In AuthCredential there is a sentence that sais Implementations specify the details but these details cannot be found in the docs. I think they should be added to the Firebase docs.

from firebase-dart.

AlexandreRoba avatar AlexandreRoba commented on August 17, 2024

Hi all, Any update on this? We can see from the JS SDK that the AuthCredential has extra "Optional" fields such as idTokens and accessToken... I need access to those after the identification in order to store them on my servers for further calls...

@kevmoo I will work on an implementation on this this, unless you see another way to get those idtokens and accesstokens?

thanks,

from firebase-dart.

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.