Today I implemented an authentication server using jwt.io. A framework for creating a secure Json web token authentication.
(jwt.io is not only available for nodejs but also for Asp.net, python, Java and many more)
How it works:
A user signs up into his account by passing his credentials to the server. The server then responses with an encrypted token, which does contain some user information (not the password though). As soon as the client has received the token, he uses it to authenticate himself (e.g. when he is doing an API call )
D-TUBE Alternative:
Originally I tried out this way of authorization in order to add it into another project of mine. But, as it turns out, it's a really useful, secure and a simple way to authenticate so I will also implement it in my d-tube alternative.
Thank you for reading !
Have a nice day!
As always: If you like my content, feel free to upvote this post. Thank you :)