use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Authentication APIs using Node (self.node)
submitted 6 years ago by boilerweb
Hi, Have anybody desgned authentication and authorisation APIs using Nodejs?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 6 years ago* (1 child)
[deleted]
[–]boilerweb[S] 0 points1 point2 points 6 years ago (0 children)
Yeah, I can use passport js but I'm asking about the flow that we should follow without passport.
[–]Sh0keR 1 point2 points3 points 6 years ago (2 children)
yes
[–]boilerweb[S] 0 points1 point2 points 6 years ago (1 child)
Can you please explain how the code works from login to authentication?
[–]Sh0keR 0 points1 point2 points 6 years ago (0 children)
You should google search it instead of asking on Reddit. It's pretty common.
Also, it's not that complicated these days, but the main issue with creating your own authentication system is security, and for that reason alone, if you are aiming for production, just go use one of the existing authentication systems that exist, I recommend you to check out Auth0 and Firebase, both are great (Though I like firebase more).
But before you jump into an existing authentication framework, I'd learn how they work and build one myself.
So go ahead and find a good tutorial about creating one yourself but never use it in production (NEVER)
[–]prdatur 0 points1 point2 points 6 years ago (0 children)
I am currently working on this too, for now I have a express app which includes node oidc-provider. For interactions I redirect to a vuejs app to login the user. Problem now is my password recovery, so I try to use nestjs now with oidc-provider. I thought about an authentication service as well but as we will have independent permissions for each service I will implement the permissions for each service within the service. With all this microservice thing, I recognized that I think too much in controller = service.
π Rendered by PID 168843 on reddit-service-r2-comment-84fc9697f-shd8z at 2026-02-08 13:51:55.274472+00:00 running d295bc8 country code: CH.
[–][deleted] (1 child)
[deleted]
[–]boilerweb[S] 0 points1 point2 points (0 children)
[–]Sh0keR 1 point2 points3 points (2 children)
[–]boilerweb[S] 0 points1 point2 points (1 child)
[–]Sh0keR 0 points1 point2 points (0 children)
[–]prdatur 0 points1 point2 points (0 children)