Thinking to use Grant JS for OAuth and managing session with iron-session #655
Unanswered
Syed-Sheharyar
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
@Syed-Sheharyar Grant JS seems like a nice way to easily integration a "login with Slack/Google/whatever" solution and yes then you can store the tokens in iron-session. Is there anything else you'd like to know? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
This I needed as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am starting a new project and there is again authentication part that needs to be covered. I am thinking about using Grant JS and iron-session for session management. Now, Grant JS provides more than 200+ OAuth providers and we can set up complete OAuth by just using one config file which surprises me.
Still, no one talks about it too much and there is not a single article on using this with any technology like express js or building something and using this as an OAuth solution. However, few articles recommend Grant JS in the top 5 best authentication solutions for Node JS. Grant JS cannot be used alone it requires some kind of session management which I think iron-session does a good job.
So, Now I want to know what you think about Grant JS @vvo and when should one use it from the readme and a few articles from the author on Medium it looks like the fastest way to add authentication using OAuth. Then, manage the session using iron-session. The real problem is that there is not a single example of using it with Next JS. For now, I think I should be using
grant().vercel()but then I don't want hosting to be limited to Vercel only. Don't know if I can host it on a regular VPS and auth works even after usinggrant().vercel().Beta Was this translation helpful? Give feedback.
All reactions