This is a demo of cloudflare auth.
Safe
- Dynamic
Unsafe
- filter page
login/logout
- login github
- login google
- logout
/fromGithub is the last endpoint. make the endpoint that receives the first callback from github. The /fromGithub is not visible for the outside world.
The fromGithub then gets the accesstoken, and then it gets the user info, and then it creates a cookie. and then it saves the cookie in the kv. And then it sends a response to the user with the cookie.