Socket
Socket
Sign inDemoInstall

react-native-google-sign-in

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

18

js/GoogleSignIn.android.js

@@ -114,2 +114,20 @@ const ReactNative = require('react-native');

// Sign in without a prompt
// If accessToken is expiring, refresh it
signInSilentlyPromise() {
return new Promise((resolve, reject) => {
const offSuccess = GoogleSignIn.onSignIn((data) => {
offSuccess();
offError();
resolve(GoogleSignIn.normalizeUser(data));
});
const offError = GoogleSignIn.onSignInError((error) => {
offSuccess();
offError();
reject(error);
});
RNGoogleSignIn.signInSilently();
});
},
disconnect() {

@@ -116,0 +134,0 @@ RNGoogleSignIn.disconnect();

@@ -121,2 +121,20 @@ const ReactNative = require('react-native');

// Sign in without a prompt
// If accessToken is expiring, refresh it
signInSilentlyPromise() {
return new Promise((resolve, reject) => {
const offSuccess = GoogleSignIn.onSignIn((data) => {
offSuccess();
offError();
resolve(GoogleSignIn.normalizeUser(data));
});
const offError = GoogleSignIn.onSignInError((error) => {
offSuccess();
offError();
reject(error);
});
RNGoogleSignIn.signInSilently();
});
},
disconnect() {

@@ -123,0 +141,0 @@ RNGoogleSignIn.disconnect();

2

package.json
{
"name": "react-native-google-sign-in",
"version": "0.0.13",
"version": "0.0.14",
"description": "React Native Wrapper for Google Sign-In OAuth SDK / API",

@@ -6,0 +6,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc