{"id":23557648,"url":"https://github.com/dipakparmar/salesforce-auth-expo","last_synced_at":"2026-02-07T06:32:45.649Z","repository":{"id":266792434,"uuid":"897068393","full_name":"dipakparmar/salesforce-auth-expo","owner":"dipakparmar","description":"Salesforce Auth Library for Expo React Native App","archived":false,"fork":false,"pushed_at":"2024-12-13T04:36:51.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T02:55:20.044Z","etag":null,"topics":["expo","expo-go","react-native","salesforce"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dipakparmar.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-02T00:50:15.000Z","updated_at":"2024-12-09T05:27:43.000Z","dependencies_parsed_at":"2024-12-06T06:37:31.813Z","dependency_job_id":"018dc0aa-999c-4e98-8409-11d8bd810a89","html_url":"https://github.com/dipakparmar/salesforce-auth-expo","commit_stats":null,"previous_names":["dipakparmar/salesforce-auth-expo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dipakparmar/salesforce-auth-expo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakparmar%2Fsalesforce-auth-expo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakparmar%2Fsalesforce-auth-expo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakparmar%2Fsalesforce-auth-expo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakparmar%2Fsalesforce-auth-expo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipakparmar","download_url":"https://codeload.github.com/dipakparmar/salesforce-auth-expo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakparmar%2Fsalesforce-auth-expo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29188226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expo","expo-go","react-native","salesforce"],"created_at":"2024-12-26T15:15:56.743Z","updated_at":"2026-02-07T06:32:45.635Z","avatar_url":"https://github.com/dipakparmar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Salesforce Auth for Expo React Native\n\nA React Native authentication library for Salesforce OAuth 2.0 with PKCE support, built specifically for Expo applications.\n\n## Features\n\n- OAuth 2.0 authentication with PKCE\n- Secure token storage\n- TypeScript support\n- Platform-specific storage handling (web/mobile)\n- Built-in hooks and context providers\n- User information retrieval\n\n## Installation\n\n```bash\nnpm install @dipakparmar/salesforce-auth-expo\n\n# or with yarn\nyarn add @dipakparmar/salesforce-auth-expo\n\n# or with pnpm\npnpm add @dipakparmar/salesforce-auth-expo\n```\n\n### Dependencies\n\nThis package requires the following peer dependencies:\n\n```json\n{\n  \"@react-native-async-storage/async-storage\": \"^2.1.0\",\n  \"expo-auth-session\": \"^6.0.0\",\n  \"expo-crypto\": \"^14.0.1\",\n  \"expo-secure-store\": \"^14.0.0\",\n  \"expo-web-browser\": \"^14.0.1\",\n  \"react-native\": \"\u003e=0.76.3 \u003c1\"\n}\n```\n\n## Usage\n\n1. Wrap your app with SalesforceAuthProvider:\n\n```jsx\nimport { SalesforceAuthProvider } from \"@dipakparmar/salesforce-auth-expo\";\n\nconst config = {\n  clientId: \"YOUR_SALESFORCE_CLIENT_ID\",\n  clientSecret: \"YOUR_SALESFORCE_CLIENT_SECRET\", // Optional: Only needed for web platforms\n  redirectUri: \"myapp://callback\", // Optional: Defaults to myapp://\n  sandbox: false, // Optional: Set to true for sandbox environment\n};\n\nexport default function App() {\n  return (\n    \u003cSalesforceAuthProvider config={config}\u003e\n      \u003cYourApp /\u003e\n    \u003c/SalesforceAuthProvider\u003e\n  );\n}\n```\n\n2. Use the auth hook in your components:\n\n```jsx\nimport { useSalesforceAuth } from \"@dipakparmar/salesforce-auth-expo\";\n\nfunction AuthComponent() {\n  const { isAuthenticated, isInitialized, signIn, signOut, getUserInfo } =\n    useSalesforceAuth();\n\n  const handleLogin = async () =\u003e {\n    try {\n      await signIn();\n      const userInfo = await getUserInfo();\n      console.log(\"User info:\", userInfo);\n    } catch (error) {\n      console.error(\"Auth error:\", error);\n    }\n  };\n\n  if (!isInitialized) {\n    return \u003cText\u003eLoading...\u003c/Text\u003e;\n  }\n\n  return (\n    \u003cView\u003e\n      {isAuthenticated ? (\n        \u003cButton title=\"Sign Out\" onPress={signOut} /\u003e\n      ) : (\n        \u003cButton title=\"Sign In\" onPress={handleLogin} /\u003e\n      )}\n    \u003c/View\u003e\n  );\n}\n```\n\n## License\n\nMIT\n\n## Credits\n\n- [expo-auth-session](https://github.com/expo/expo/tree/main/packages/expo-auth-session)\n- [logto/rn](https://github.com/logto-io/react-native/tree/master/packages/rn)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipakparmar%2Fsalesforce-auth-expo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipakparmar%2Fsalesforce-auth-expo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipakparmar%2Fsalesforce-auth-expo/lists"}