News for hackers. Stuff that matters.
Re:Show HN: I built this reusable Auth Server to handle logi... by kostarelo on Saturday June 13, 2020 @05:30PM (#23512916)
I only see code about Post and Users. Where's the actual login/register logic?

Also, how's the JWT token is being transferred to the main app? More information on that would be great I think to include in your README.

Re:Show HN: I built this reusable Auth Server to handle logi... by ngduc on Saturday June 13, 2020 @05:38PM (#23512981)
Hi kostarelo, The auth logic is here - https://github.com/authui/authui-server/blob/master/src/type... After calling the login api, it will respond with a token which contains a valid userId. I am updating the Readme. Thanks.
Re:Show HN: I built this reusable Auth Server to handle logi... by ngduc on Saturday June 13, 2020 @05:44PM (#23513037)
done.
Re:Show HN: I built this reusable Auth Server to handle logi... by edoceo on Saturday June 13, 2020 @06:08PM (#23513234)
Is this like a stand alone auth system? (eg https://github.com/openthc/sso ) or must it be embedded in app?
Re:Show HN: I built this reusable Auth Server to handle logi... by ngduc on Saturday June 13, 2020 @06:53PM (#23513535)
It can be both. a Login component (template) can be embedded or user can implement their own component and connect to AuthUI endpoints.
Re:Show HN: I built this reusable Auth Server to handle logi... by karmakaze on Saturday June 13, 2020 @08:33PM (#23514091)
package.json says "license": "MIT"

Would be nice to have an explicit LICENSE file.

Re:Show HN: I built this reusable Auth Server to handle logi... by ngduc on Saturday June 13, 2020 @08:42PM (#23514127)
Added. Thanks karmakaze!
Re:Show HN: I built this reusable Auth Server to handle logi... by ngduc on Saturday June 13, 2020 @05:24PM (#23512862)
Any feedback or suggestion is welcome! Thanks.