OAuth in a static Space (Vanilla JS)

This is a demonstration of the Hugging Face OAuth flow in a static Space using only vanilla JS.
No external libraries are needed – just copy this HTML file in your Space! After clicking "Signin with HF", you will be redirected to this space and the access token + user info will be displayed.