google-play-services-auth
Authentication module for Google Play Services for NodeJs
Example
var Auth = android_id: '9774d56d682e549c' // Android ID app: 'com.nianticlabs.pokemongo' // App name client_sig: '321187995bc7cdc2b5fc91b11a96e2baa8602c62' //Client signature service: 'audience:server:client_id:848232511240-7so421jotr2609rmqakceuu1luuq0ptb.apps.googleusercontent.com' //OAuth service link async funtion { try var user = Auth var user2 = Auth var user3 = Auth catcherr console }
User object
email // This user`s email password // This user`s password app // Application id android_id // Application android id client_sig // Application signature id service // Application OAuth service URL has_permission // Should application have permission? (default: 1) add_account // Add account to application data? (default: 1) source // Device type (default: android) device_country // Device country (default: us) operatorCountry // Device operator country (default: us) lang // Device language (default: en) sdk_version // Device SDK version (default: 17) user_agent // Device agent (default: 'Dalvik/2.1.0 (Linux U Android 5.1.1 Andromax I56D2G Build/LMY47V') isLogged // is user logged? (default: false) // params recieved from authentication Auth // Master auth token issueAdvice // default auto, unknown function? Expiry // date of token expiry. storeConsentRemotely // Store data externally. //Dont touch auth_url // Google auth path