{"id":24510679,"url":"https://github.com/rhdeck/expo-amplify-appauth","last_synced_at":"2025-07-30T04:08:41.819Z","repository":{"id":50186089,"uuid":"372809709","full_name":"rhdeck/expo-amplify-appauth","owner":"rhdeck","description":"Easy Hook to Connect Amplify Auth with Expo AppAuth implementation ","archived":false,"fork":false,"pushed_at":"2021-06-02T00:23:10.000Z","size":247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T05:41:29.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rhdeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-01T11:44:37.000Z","updated_at":"2021-06-02T00:23:10.000Z","dependencies_parsed_at":"2022-09-14T11:51:49.312Z","dependency_job_id":null,"html_url":"https://github.com/rhdeck/expo-amplify-appauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"rhdeck/ts-template","purl":"pkg:github/rhdeck/expo-amplify-appauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fexpo-amplify-appauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fexpo-amplify-appauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fexpo-amplify-appauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fexpo-amplify-appauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhdeck","download_url":"https://codeload.github.com/rhdeck/expo-amplify-appauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fexpo-amplify-appauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267392539,"owners_count":24079918,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-22T00:30:14.387Z","updated_at":"2025-07-30T04:08:41.780Z","avatar_url":"https://github.com/rhdeck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ca name=\"readmemd\"\u003e\u003c/a\u003e\n\nTemplate for making easy-to-work-with tempates\n\n# expo-amplify-appauth\n\n## The Problem\n\nAppAuth is awesome! It works great getting an authentication code for AWS Cognito! Then things break down. This package wraps AppAuth `promptAsync` pattern to automatically populate the `Auth` and `Credentials` objects from AWS Amplify front-end components to allow seamless communication with Cognito-authenticated AWS services.\n\nThis has been tested on user pools, but not identity pools. \n\n\n\n\u003ca name=\"_librarymd\"\u003e\u003c/a\u003e\n\nexpo-amplify-appauth - v1.0.1\n\n# expo-amplify-appauth - v1.0.1\n\n## Table of contents\n\n### References\n\n- [default](#default)\n\n### Functions\n\n- [useAmplifyAppAuth](#useamplifyappauth)\n\n## References\n\n### default\n\nRenames and exports: [useAmplifyAppAuth](#useamplifyappauth)\n\n## Functions\n\n### useAmplifyAppAuth\n\n▸ **useAmplifyAppAuth**(`config`): `Object`\n\n#### Parameters\n\n| Name | Type | Description |\n| :------ | :------ | :------ |\n| `config` | `Object` | Options for initializing Amplify authentication using AppAuth in Expo |\n| `config.authorizationEndpoint?` | `string` | - |\n| `config.clientId` | `string` | - |\n| `config.clientSecret?` | `string` | - |\n| `config.domain?` | `string` | - |\n| `config.endPoint?` | `string` | - |\n| `config.region?` | `string` | - |\n| `config.scopes?` | `string`[] | Oauth scopes (defaults to [openid], which is fine for most use cases) |\n| `config.tokenEndpoint?` | `string` | - |\n| `config.userPoolId` | `string` | - |\n\n#### Returns\n\n`Object`\n\n| Name | Type |\n| :------ | :------ |\n| `currentUser` | `undefined` \\| `CognitoUser` |\n| `error` | `undefined` \\| `string` |\n| `isLoggedIn` | `boolean` |\n| `loading` | `boolean` |\n| `promptAsync` | (...`args`: `any`[]) =\u003e `Promise`\u003cAuthSessionResult\\\u003e |\n\n#### Defined in\n\n[index.ts:38](https://github.com/rhdeck/expo-amplify-appauth/blob/643b9f4/src/index.ts#L38)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fexpo-amplify-appauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhdeck%2Fexpo-amplify-appauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fexpo-amplify-appauth/lists"}