krimple / amplify-nextjs-app Goto Github PK
View Code? Open in Web Editor NEWA Next.JS application running on AWS Amplify
A Next.JS application running on AWS Amplify
Configured the stack using SSR (ssr: true in the Amplify config).
I have authentication working on the template (_app.ts) to force Cognito to provide login controls. This is working.
However, it appears that I cannot get the auth to carry over, even using context (aws-amplify/amplify-hosting#3187 seems relevant here).
Stack:
error - Error: The user is not authenticated
at Object.getProperError (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/lib/is-error.js:25:12)
at DevServer.renderToResponse (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:988:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DevServer.pipe (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:406:25)
at async Object.fn (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/next-server.js:744:21)
at async Router.execute (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/router.js:252:36)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:383:29)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/dev/next-dev-server.js:734:20)
at async DevServer.handleRequest (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:321:20) {
page: '/buckets'
}
error - Error: The user is not authenticated
at Object.getProperError (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/lib/is-error.js:25:12)
at DevServer.renderToResponse (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:988:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DevServer.pipe (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:406:25)
at async Object.fn (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/next-server.js:744:21)
at async Router.execute (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/router.js:252:36)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:383:29)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/dev/next-dev-server.js:734:20)
at async DevServer.handleRequest (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:321:20) {
page: '/buckets'
}
error - Error: The user is not authenticated
at Object.getProperError (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/lib/is-error.js:25:12)
at DevServer.renderToResponse (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:988:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DevServer.pipe (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:406:25)
at async Object.fn (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/next-server.js:744:21)
at async Router.execute (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/router.js:252:36)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:383:29)
at async DevServer.run (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/dev/next-dev-server.js:734:20)
at async DevServer.handleRequest (/Users/kennethrimple/projects/Training/fullstack-aws/amplify-nextjs/amplify-nextjs-app/node_modules/next/dist/server/base-server.js:321:20) {
page: '/buckets'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.