Code Monkey home page Code Monkey logo

Comments (4)

vvo avatar vvo commented on May 9, 2024

Hi @bonbonio, are you using HAPI? If so then https://github.com/hapijs/yar would be the way to achieve what you want.

If I misunderstood your question just let me know. Thanks

from iron-session.

bonbonio avatar bonbonio commented on May 9, 2024

Hi, this looks like it, thank you.

Is iron still very new? I am having trouble finding much in the way of examples; but it seems to solve the problem of allowing a user to authenticate in my App, and avoid the need for the getInitialProps in _app.jsx to work.

Are there any other good resources/tutorials for this? Perhaps they could be added to this projects docs too - if this is stated to be the best practice auth for NextJS I feel that would rapidly help people adopt it.

Many thanks though, I think I can dig through yar now. Just need to figure out how to write an auth strategy for it... im using something like so;

-- I think I will try using the cookie-auth first for iron tokens, and then seeing how I do.

from iron-session.

vvo avatar vvo commented on May 9, 2024

Hi there, I am not sure to fully understand if you're a user of Next.js or HAPI but:

Good luck!

from iron-session.

bonbonio avatar bonbonio commented on May 9, 2024

Hi @VVI,

I am making some progress; to clarify I am using Hapi as a backend service and NextJS for the site itself. Everything was working with JWT but I am migrating to use iron_sessions - I think with a bit more time I can provide an example with how to use your code with HapiJS.

from iron-session.

Related Issues (20)

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.