{"id":16073792,"url":"https://github.com/phstc/cognito-amplify-cdk-10290","last_synced_at":"2026-01-21T12:02:06.731Z","repository":{"id":174998249,"uuid":"621013142","full_name":"phstc/cognito-amplify-cdk-10290","owner":"phstc","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-19T23:17:57.000Z","size":860,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T15:42:00.637Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phstc.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}},"created_at":"2023-03-29T20:21:34.000Z","updated_at":"2023-04-04T07:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"50e8fe25-e7d4-417a-add7-ed23876230f2","html_url":"https://github.com/phstc/cognito-amplify-cdk-10290","commit_stats":null,"previous_names":["phstc/cognito-amplify-cdk-10290"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phstc/cognito-amplify-cdk-10290","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fcognito-amplify-cdk-10290","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fcognito-amplify-cdk-10290/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fcognito-amplify-cdk-10290/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fcognito-amplify-cdk-10290/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phstc","download_url":"https://codeload.github.com/phstc/cognito-amplify-cdk-10290/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fcognito-amplify-cdk-10290/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-09T08:23:00.706Z","updated_at":"2026-01-21T12:02:06.708Z","avatar_url":"https://github.com/phstc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sample repo for troubleshooting [Next.js and AWS Amplify \"No current user\" at getServerSideProps - REST, not GraphQ](https://github.com/aws-amplify/amplify-js/issues/10290)\n\n### Set up\n\n```sh\ncd backend\nnpm install\n```\n\n- Make sure you have a valid [GITHUB_TOKEN](https://github.com/phstc/cognito-amplify-cdk-10290/blob/ccea786393e9addc6c71ff846b144a4fd77db245/backend/src/infra/app-stack.ts#L93) secret.\n- Set a unique domain for your Cognito user pool [here](https://github.com/phstc/cognito-amplify-cdk-10290/blob/ccea786393e9addc6c71ff846b144a4fd77db245/backend/src/infra/auth-stack.ts#L57).\n- Update the frontend Amplify configuration [here](https://github.com/phstc/cognito-amplify-cdk-10290/blob/ff2330b94138ca31f8e2b223c270d91e58c4dcae/frontend/src/configure-amplify.ts#L29) to use the same unique domain\n\n```sh\nnpm run deploy\n```\n\nOnce the deployment is completed, get the output from the deployment (or check them on the Amplify deployed app/Environment variables) and configure [env.local.sample](https://github.com/phstc/cognito-amplify-cdk-10290/blob/5a82b49ed775319d7575211b58d5a022f38fb2c5/frontend/env.local.sample) with the deploy output values then rename the file to `env.local`.\n\n```sh\nmv frontend/env.local.sample frontend/env.local\n```\n\nInstall frontend dependencies:\n\n```sh\ncd frontend\nnpm install\n```\n\n### Running\n\n```sh\ncd frontend\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) there will be two links:\n\n- [Works SSR](http://localhost:3000/works-ssr)\n- [Does not work SSR](http://localhost:3000/does-not-work-ssr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fcognito-amplify-cdk-10290","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphstc%2Fcognito-amplify-cdk-10290","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fcognito-amplify-cdk-10290/lists"}