{"id":4755,"url":"https://github.com/jodybrewster/react-native-linkedin-login","last_synced_at":"2026-01-12T02:48:46.030Z","repository":{"id":143805242,"uuid":"48379825","full_name":"jodybrewster/react-native-linkedin-login","owner":"jodybrewster","description":"React Native Linkedin login","archived":false,"fork":false,"pushed_at":"2022-07-13T02:22:57.000Z","size":3162,"stargazers_count":71,"open_issues_count":14,"forks_count":42,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-10T08:03:41.602Z","etag":null,"topics":["android","ios","linkedin","linkedin-sdk","login","react-native","signin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jodybrewster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-12-21T15:42:13.000Z","updated_at":"2023-09-04T08:42:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9b097c9-90ce-45f6-8498-ff95cd2c0b6f","html_url":"https://github.com/jodybrewster/react-native-linkedin-login","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodybrewster%2Freact-native-linkedin-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodybrewster%2Freact-native-linkedin-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodybrewster%2Freact-native-linkedin-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodybrewster%2Freact-native-linkedin-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jodybrewster","download_url":"https://codeload.github.com/jodybrewster/react-native-linkedin-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228248594,"owners_count":17891447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","linkedin","linkedin-sdk","login","react-native","signin"],"created_at":"2024-01-05T20:17:22.312Z","updated_at":"2026-01-12T02:48:46.024Z","avatar_url":"https://github.com/jodybrewster.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"readme":"# react-native-linkedin-login\n\n\n[![npm version](https://img.shields.io/npm/v/react-native-linkedin-login.svg?style=flat-square)](https://www.npmjs.com/package/react-native-linkedin-login)\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)\n[![Dependency Status](https://david-dm.org/jodybrewster/react-native-linkedin-login.svg)](https://david-dm.org/jodybrewster/react-native-linkedin-login)\n[![Coverage Status](https://coveralls.io/repos/github/jodybrewster/react-native-linkedin-login/badge.svg?branch=master)](https://coveralls.io/github/jodybrewster/react-native-linkedin-login?branch=master)\n[![Gitter](https://badges.gitter.im/react-native-linkedin-login/Lobby.svg)](https://gitter.im/react-native-linkedin-login/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nLet your users sign in with their Linkedin account.\n\n## Requirements\n\n* Node v4+.\n* React Native 0.30+\n\n## Installation\n\n### iOS Guide\n\n\n#### Automatic\n\nFirst install and save the library\n\n```bash\nnpm install react-native-linkedin-login --save;\n```\n\nThen link the library to your project\n\n```bash\nreact-native link;\n```\n\nIn the manual section below you will find updates you need to make to your Info.plist file.  Please also refer to the linkedin documentation at the bottom of this readme for more info.\n\n\n#### Manual\n\nFirst install and save the library\n\n```\nnpm install react-native-linkedin-login --save\n```\n\nDrag and drop the following xcode project file into the xcode project...\n\nnode_modules/react-native-linkedin-login/ios/RCTLinkedinLogin.xcodeproj\n\n\nAdd these lines to your AppDelegate.m\n\n```objc\n#import \u003cRCTLinkedinLogin/RCTLinkedinLogin.h\u003e\n```\n\n```objc\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation\n{\n  if ([RCTLinkedinLogin shouldHandleUrl:url])\n  {\n    return [RCTLinkedinLogin application:application openURL:url sourceApplication:sourceApplication annotation:annotation];\n  }\n  return YES;\n}\n```\n\nAdd the following to your Info.plist, please refer to the Linkedin docs below...\n\n```plist\n\n\u003ckey\u003eNSAppTransportSecurity\u003c/key\u003e\n\u003cdict\u003e\n\t\u003ckey\u003eNSExceptionDomains\u003c/key\u003e\n\t\u003cdict\u003e\n\t\t\u003ckey\u003elinkedin.com\u003c/key\u003e  \n\t\t\u003cdict\u003e\n\t\t\t\u003ckey\u003eNSExceptionAllowsInsecureHTTPLoads\u003c/key\u003e\n\t\t\t\u003ctrue/\u003e\n\t\t\t\u003ckey\u003eNSExceptionRequiresForwardSecrecy\u003c/key\u003e\n\t\t\t\u003cfalse/\u003e\n\t\t\t\u003ckey\u003eNSIncludesSubdomains\u003c/key\u003e\n\t\t\t\u003ctrue/\u003e\n\t\t\u003c/dict\u003e\n\t\t\u003ckey\u003elocalhost\u003c/key\u003e\n\t\t\u003cdict\u003e\n\t\t\t\u003ckey\u003eNSExceptionAllowsInsecureHTTPLoads\u003c/key\u003e\n\t\t\t\u003ctrue/\u003e\n\t\t\u003c/dict\u003e\n\t\u003c/dict\u003e\n\u003c/dict\u003e\n\u003ckey\u003eCFBundleURLTypes\u003c/key\u003e\n\u003carray\u003e\n\t\u003cdict\u003e\n\t\t\u003ckey\u003eCFBundleTypeRole\u003c/key\u003e\n\t\t\u003cstring\u003eEditor\u003c/string\u003e\n\t\t\u003ckey\u003eCFBundleURLSchemes\u003c/key\u003e\n\t\t\u003carray\u003e\n\t\t\t\u003cstring\u003eli{YOUR_APP_ID_GOES_HERE}\u003c/string\u003e\n\t\t\u003c/array\u003e\n\t\u003c/dict\u003e\n\u003c/array\u003e\n\u003ckey\u003eLIAppId\u003c/key\u003e\n\u003cstring\u003e{YOUR_APP_ID_GOES_HERE}\u003c/string\u003e\n\u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n\u003carray\u003e\n\t\u003cstring\u003elinkedin\u003c/string\u003e\n\t\u003cstring\u003elinkedin-sdk2\u003c/string\u003e\n\t\u003cstring\u003elinkedin-sdk\u003c/string\u003e\n\u003c/array\u003e\n```\n\n### Android Guide\n\n\n#### Automatic\n\nFirst install and save the library\n\n```bash\nnpm install react-native-linkedin-login --save;\n```\n\nThen link the library to your project\n\n```bash\nreact-native link;\n```\n\n#### Manual\n\nFirst install and save the library\n\n```bash\nnpm install react-native-linkedin-login --save\n```\n\nThen modify the following fules\n\n- In `android/setting.gradle`\n\n```gradle\n...\ninclude ':react-native-linkedin-login', ':app'\nproject(':react-native-linkedin-login').projectDir = new File(rootProject.projectDir, '../../android')\n\n\n```\n\n- In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    compile fileTree(dir: \"libs\", include: [\"*.jar\"])\n    compile \"com.android.support:appcompat-v7:23.0.1\"\n    compile \"com.facebook.react:react-native:+\"  // From node_modules\n    compile project(\":react-native-linkedin-login\") // \u003c-- add here\n}\n```\n\n- Register Module (in MainApplication.java)\n\n```java\n\npackage com.rnlinkinloginexample;\n\nimport android.app.Application;\nimport android.util.Log;\n\nimport com.facebook.react.ReactApplication;\nimport com.facebook.react.ReactInstanceManager;\nimport com.facebook.react.ReactNativeHost;\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.shell.MainReactPackage;\nimport com.facebook.soloader.SoLoader;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport net.jodybrewster.linkedinlogin.RNLinkedinLoginPackage;  // \u003c------ add here\n\npublic class MainApplication extends Application implements ReactApplication {\n\n  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {\n    @Override\n    protected boolean getUseDeveloperSupport() {\n      return BuildConfig.DEBUG;\n    }\n\n    @Override\n    protected List\u003cReactPackage\u003e getPackages() {\n      return Arrays.\u003cReactPackage\u003easList(\n          new MainReactPackage(),\n          new RNLinkedinLoginPackage() // \u003c------ add this line to yout MainActivity class\n      );\n    }\n  };\n\n  @Override\n  public ReactNativeHost getReactNativeHost() {\n    return mReactNativeHost;\n  }\n\n  @Override\n  public void onCreate() {\n    super.onCreate();\n    SoLoader.init(this, /* native exopackage */ false);\n  }\n}\n\n\n```\n\n\n### Linkedin Getting Started Guide\n\nCheck out the following Android guide for reference\n\n-\t[https://developer.linkedin.com/docs/android-sdk](https://developer.linkedin.com/docs/android-sdk)\n\n\n## Usage\nPlease change the init with your parameters\n\n```js\n...\n\n\nthis.init(\n    [\n        'r_emailaddress',\n        'r_basicprofile'\n    ]\n).then((e) =\u003e {\n    console.log('Linkedin initialized');\n});\n```\n## Options For Linkedin Profile Fields\n\nCheck out following Linkedin developer guied for profile fields\n-\t[https://developer.linkedin.com/docs/fields/basic-profile](https://developer.linkedin.com/docs/fields/basic-profile)\n\n\n```js\n...\n\n//pass options as string parameters in getProfile()\nvar options = 'id,first-name,last-name,industry,email-address,industry,location'\n\nLinkedinLogin.getProfile(options)\n```\n\n## Additional scopes\n\nPlease note that basic and email permissions are hardcoded. Pull requests are welcome! ლ(́◉◞౪◟◉‵ლ)\n\n\n## Alternatives\n* [react-native-linkedin](https://github.com/xcarpentier/react-native-linkedin)\n* [react-native-linkedin-sdk](https://www.npmjs.com/package/react-native-linkedin-sdk)\n* [react-native-linkedin-oauth](https://www.npmjs.com/package/react-native-linkedin-oauth)\n\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Jody Brewster\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjodybrewster%2Freact-native-linkedin-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjodybrewster%2Freact-native-linkedin-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjodybrewster%2Freact-native-linkedin-login/lists"}