Comments (5)
@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.
@marcojakob Thanks for that, I will take a look.
from firebase-dart.
@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.
@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.
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)
- Firebase syncing issue when persistance is involved HOT 1
- [ Dartify ] Using type specific to firestore HOT 6
- [ Dartify ] Datasnapshot.val() failing HOT 4
- Database onValue does not call onError callback HOT 2
- Uncaught Error: Expected a value of type 'FutureOr<UserCredentialJsImpl>', but got one of type 'MemoryInfo' HOT 1
- TypeError: dart.global.firebase.firestore is not a function HOT 1
- Null-safety HOT 1
- Errors when building for Android HOT 2
- Stream listen is not called when limit is added in Firestore query in Dart / Flutter
- null returned from data in get() request of a non-existant firestore node HOT 1
- TypeError: dart.global.firebase.firestore is not a function How to resolve it.? HOT 1
- ErrorDocument Oh My. HOT 2
- [firebase_database] missing get() method
- [firebase_database]: connect to different database of app
- [firebase_database]: enable or disable logging HOT 1
- [firebase_database] onValue, onChildChanged .. not working
- Not Sure what errror to post, too many errors. HOT 2
- Will this lib implement module bundlers per the new Firebase APIs for web and will it even help? HOT 1
- auth/user-token-expired thrown by getIdToken
- Is it possible to use the emulator suite with Firebase (Dart) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-dart.