4 ms·
Show HN: I built this reusable Auth Server to handle logins/signups to save time
- ngduc 6y agoAny feedback or suggestion is welcome! Thanks.
- kostarelo 6y agoI 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.
- ngduc 6y agoHi kostarelo, The auth logic is here - https://github.com/authui/authui-server/blob/master/src/types/Mutation.ts 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.
- ngduc 6y agodone.
- edoceo 6y agoIs this like a stand alone auth system? (eg https://github.com/openthc/sso https://github.com/openthc/sso ) or must it be embedded in app?
- ngduc 6y agoIt can be both. a Login component (template) can be embedded or user can implement their own component and connect to AuthUI endpoints.
- karmakaze 6y agopackage.json says "license": "MIT" Would be nice to have an explicit LICENSE file.
- ngduc 6y agoAdded. Thanks karmakaze!