Repl.it Authentication V2
So, my first tutorial v1 was pretty successful! I guess a lot of you like Express.js and it was even posted on the newsletter! Yay! This version comes back even better because we are going to use the
ES6 of templating:
I first used pug, but I found out it wasn't the best to use, I mean, who wants to do this?
script. // Bleah no formatting wah!
that's why I made the switch to mustache! It is similar to angular.js's template, which is good since I am familiar to that. One cool thing is that you can set up the engine to your own liking, so I made it render for all the
.htm files! Now that's cool.
- Added jsonstore.io game soo you can see how powerful repl.it's API is
- Some more browser-based proofs! Just uncomment the code and hit
- I made my own script for handling the repl.it API. Everything is sustainable now! Anyways, what makes my script better is that it is unopinionated like express and you can customize the iframe much better and have custom handlers and error handlers. Read the
readme.mdto get more information.
Deriving some important identities
This isn't trig class lol anyways uncomment
line 57 to prove there are only 3 request headers (you could've just looked at the login prompt which told you what was going to be shared) and uncomment
line 100 to prove that the headers are persistent. Suggest more proofs by commenting below ↓