Years ago I wrote an SSO module for node,js (link - deprecated!). Recently I decided to rewrite the module in TypeScript.
Using the module a developer can get access codes and renew them when necessary. The received token is validated as well, and the class exposes a method for validation.
I hope this is useful to some of you out there. Tips, issues, and feedback is greatly appreciated!