Coder Social home page Coder Social logo

Comments (3)

dferber90 avatar dferber90 commented on May 20, 2024 1

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.

dferber90 avatar dferber90 commented on May 20, 2024

Did you read through this tutorial to see how to set things up?

from aws-cognito-next-example-app.

snk-js avatar snk-js commented on May 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.