Google Play Services is a proprietary background service and API package for Android devices from Google. Among other things it provides Google Sign-in Android API for single sign-on, authenticating the user inside applications using current credentials.
An unofficial TypeScript client for Google Play Services OAuth.
npm install --save-dev google-play-services-oauth
import * from google-play-services-oauth
var GoogleOauth = require("../oauth");
var EMAIL = 'your_google_email';
var PASSWORD = 'your_email_password';
var ANDROID_ID = 'your_android_id'
var SERVICE = 'your_service'
var APP = 'your_android'
var CLIENT_SIG = 'your_client_sig'
var google = new GoogleOauth();
google.login(EMAIL, PASSWORD, ANDROID_ID, function (err, data) {
if (data) {
google.oauth(EMAIL, data.masterToken, data.androidId, SERVICE, APP, CLIENT_SIG, function (err, data) {
console.log(data);
});
}
});
Great! Here is how you can install the project on your local machine.
- Git clone your fork locally.
npm install
inside the new directory.- Start coding..
- Make a Pull Request!