The voices in my head say hi stardancers.
So, this is kind of a big one. Basically, the hardest problem right now was understanding how to use the HCA (Hack Club Auth) to make it so that the website recognizes that you are indeed a Stardance member. To basically skip all the hassle, it works like this:
The moment you press enter, the button opens the HCA website. In my case, I was already logged in, but in browsers without a yet known Hack Club acc it will prompt to log in and use the verification code and what not.
Then, when you do all that, it goes to the window in the video, where it tells you if you are sure to give that info to the website. What the website does with said info is it sends you to a callback website with a temporary code in the URL. Then, it sends said code to HCA, where it gives back a verification code that this user is indeed a hackclub certified member, more specifically, a Stardance member.
After that, it uses that token to ask who is said user, where HCA responds with their ID and verif. status. If the account exist, and it’s a Stardance member, they will be let in. Otherwise, the page says “the void doesn’t recognize you” (I don’t really have a “way” of testing this, so just trust me on this one that it exists). Finally, the website saves said info, and lets you in The Void.
That was more easy said than done, but with good work and like 3-4 hours later, it got done. But, on a really bad turn of events, the stardance timer didn’t get all that time, and instead logged in 2 hours only. But, it ain’t about the time spent (It actually is but what can i do honestly), but about it working, and if it works, then that’s a job well done (I guess).
Oh yeah I forgot but I switched from github Pages to Vercel in order to hide my Client Secret from being pushed into the repo, which I… almost did. Like 3 times.
Don’t forget to like and subscribe for future devlongs.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.