This is a backend server to use MetaMask to login in any website.
The design of this back-end service refers to this article
This project uses wrangler as the framework.You can read this doc
I have written a Chinese blog detailing the code, which you can access through this link