Ad
Android Firebase SDK Github Auth
I'm trying to use Firebase to authenticate github users in order to make calls to Github API.
I'm following this Firebase Guide
I'm not able to get user access token as said in docs examples.
authResult.getCredential().getAccessToken()
and then I'm not able to do the authentication
authWithGithub
getAccessToken method isn't available as you can see in the image getAccessToken
I've searched all the forums trying to find a solution, but I'm not able to.
I'm pretty new to it, so please, elaborate.
Is this github auth working? If yes, how can I proceed? If not, how can I proceed?
Ad
Answer
please use this code to get accesstoken.
((OAuthCredential)authResult.getCredential()).getAccessToken();
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad