Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-social-auth
Advanced tools
Readme
0.40.0
(use 0.5
branch that works with previous versions of RN)facebook
twitter
npm install react-native-social-auth
import SocialAuth from 'react-native-social-auth';
Perform platform specific setup - iOS - Android
SocialAuth.facebookPermissionsType.read
SocialAuth.facebookPermissionsType.write
SocialAuth.setFacebookApp({id: 'APP_ID', name: 'DISPLAY_NAME'});
permissions
(Array of strings)permissionsType
(one of facebookPermissionsType)credentials
(object contains accessToken
, userId
, hasWritePermissions
)error
(object contains code
and message
)
SocialAuth.getFacebookCredentials(["email", "user_friends"], SocialAuth.facebookPermissionsType.read)
.then((credentials) => console.log(credentials));
.catch((error) => console.log(error))
accounts
(array of objects like {username: "userName"}
)error
(object contains code
and message
)SocialAuth.getTwitterSystemAccounts()
.then((accounts) => console.log(accounts))
.catch((error) => console.log(error));
username
(Twitter account user name without @
)
reverseAuthResponse
(is a string that returns by twitter's api when we do the first part of reverse auth)
key
and secret
of your twitter app in RNSocialAuthManager.m#define twitterAppConsumerKey @"..."
#define twitterAppConsumerSecret @"..."
OAuth oauth_timestamp="...", oauth_signature="...", oauth_consumer_key="...", oauth_nonce="...", oauth_token="...", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"
Then you just pass it to the function as a second parametercredentials
(object contains oauthToken
, oauthTokenSecret
, userName
)error
(object contains code
and message
)SocialAuth.getTwitterCredentials("dimkol")
.then((credentials) => console.log(credentials))
.catch((error) => console.log(error));
Just submit a pull request!
Code and documentation copyright 2015 Dmitriy Kolesnikov. Code released under the MIT license.
FAQs
React Native module provides auth methods via social networks using native APIs
The npm package react-native-social-auth receives a total of 12 weekly downloads. As such, react-native-social-auth popularity was classified as not popular.
We found that react-native-social-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.