Comments (3)
It's unlikely that this is an issue of aws-cognito-next
itself as this part works in the demo. Make sure you're on the latest Next.js version as getServerSideProps
was introduced recently.
It's also better to call export const getServerSideAuth = createGetServerSideAuth({ pems })
once, and reuse the generated function as shown in the tutorial.
I'll close this issue for now as there are no concrete steps to reproduce it and it doesn't seem like this package is at fault.
Since I created this package, Amplify has added official support for server-side rendering, so you might want to look into using Amplify directly: aws-amplify/amplify-js#5435 (comment)
from aws-cognito-next-example-app.
Did you read through this tutorial to see how to set things up?
from aws-cognito-next-example-app.
Did you read through this tutorial to see how to set things up?
Yep, I made it work the login, but I can't hang a way to know If I'm already logged in. And that "createGetServerSideAuth" don't bring the authkeys, I tested pems, and context.req, It was suppose to work didn't?
[EDIT]: my getServerSideProps maybe not working. getInitialProps works, but don't know exactly why getServerSideProps can't pass data props to my component.
from aws-cognito-next-example-app.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cognito-next-example-app.