{"id":26252736,"url":"https://github.com/kinde-oss/expo","last_synced_at":"2025-04-24T06:05:53.202Z","repository":{"id":251355347,"uuid":"826853074","full_name":"kinde-oss/expo","owner":"kinde-oss","description":"Library to integrate Kinde into an Expo project","archived":false,"fork":false,"pushed_at":"2025-04-02T20:32:03.000Z","size":460,"stargazers_count":7,"open_issues_count":6,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-20T14:04:14.804Z","etag":null,"topics":["auth","authentication","expo","expo-auth-session","kinde","react-native"],"latest_commit_sha":null,"homepage":"https://www.kinde.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kinde-oss.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-07-10T14:04:03.000Z","updated_at":"2025-04-08T18:37:57.000Z","dependencies_parsed_at":"2024-08-28T19:28:58.259Z","dependency_job_id":null,"html_url":"https://github.com/kinde-oss/expo","commit_stats":null,"previous_names":["kinde-oss/expo"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinde-oss%2Fexpo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinde-oss%2Fexpo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinde-oss%2Fexpo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinde-oss%2Fexpo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kinde-oss","download_url":"https://codeload.github.com/kinde-oss/expo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249906759,"owners_count":21343499,"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":["auth","authentication","expo","expo-auth-session","kinde","react-native"],"created_at":"2025-03-13T17:28:06.538Z","updated_at":"2025-04-24T06:05:53.196Z","avatar_url":"https://github.com/kinde-oss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kinde Expo SDK\n\nThe Kinde Expo SDK allows developers to quickly and securely integrate a new or an existing Expo application into the Kinde platform.\n\n## **Installation**\n\n```bash\nnpx nypm add @kinde/expo\n```\n\n## **Environment variables**\n\nThe redirection URL is automatically computed using Expo Auth Session `makeRedirectUri` function. You can find more information about this function [here](https://docs.expo.dev/versions/latest/sdk/auth-session/#makeRedirectUri).\n\n## Integrate with your app\n\nSetup the Kinde Provider in your App.js file.\n\n```typescript\nimport { KindeAuthProvider } from '@kinde/expo';\n\nexport default function App() {\n  return (\n    \u003cKindeAuthProvider config={{\n       domain: \"https://your-app.kinde.com\", // Required\n       clientId: \"your-client-id\", // Required\n       // Optional (default: \"openid profile email offline\")\n       scopes: \"openid profile email offline\",\n     }}\u003e\n      \u003c!-- Your application code --\u003e\n    \u003c/KindeAuthProvider\u003e\n  );\n}\n```\n\n## Authentication Methods\n\nSimple and flexible functions for register, login and logout are part of the `useKindeAuth` hook\n\n```tsx\nimport { useKindeAuth } from \"@kinde/expo\";\nimport { Pressable, View, Text } from \"react-native\";\n\nexport default function Authentication() {\n  const kinde = useKindeAuth();\n\n  const handleSignUp = async () =\u003e {\n    const token = await kinde.register({});\n    if (token) {\n      // User was authenticated\n    }\n  };\n\n  const handleSignIn = async () =\u003e {\n    const token = await kinde.login({});\n    if (token) {\n      // User was authenticated\n    }\n  };\n\n  const handleLogout = async () =\u003e {\n    await kinde.logout({ revokeToken: true });\n  };\n\n  return !kinde.isAuthenticated ? (\n    \u003cView\u003e\n      \u003cPressable onPress={handleSignIn}\u003e\n        \u003cText\u003eSign In\u003c/Text\u003e\n      \u003c/Pressable\u003e\n      \u003cPressable onPress={handleSignUp}\u003e\n        \u003cText\u003eSign Up\u003c/Text\u003e\n      \u003c/Pressable\u003e\n    \u003c/View\u003e\n  ) : (\n    \u003cPressable onPress={handleLogout}\u003e\n      \u003cText\u003eLogout\u003c/Text\u003e\n    \u003c/Pressable\u003e\n  );\n}\n```\n\n## Contributing\n\nIf you'd like to contribute to this project, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes.\n4. Submit a pull request.\n\n## License\n\nBy contributing to Kinde, you agree that your contributions will be licensed under its MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinde-oss%2Fexpo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinde-oss%2Fexpo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinde-oss%2Fexpo/lists"}