/auth-api

Primary LanguageTypeScript

Auth API

A Node.js auth template for free use

What I use?

For build API I use mongoose driver for Mongodb, JsonWebToken, bcrypt and TypeScript.

What will you find?

I implemented roles (user, moderator and admin), email verification on signup, two factor auth on login with activation code on email, protected routes (for all users, for moderators and only for admins), global error handler (production and development errors).

Apache 2.0 license