Wow, nice explanations.
Man, you are a blog expert, I am just battling with what you are playing with. LOL
Idk where the authenticate and create request functions are without checking the repo. you could have to give the file name or something.
Thanks Mahdi! It was actually quite complex so I'm happy to help. In my repo most of the auth code is distributed between the authUtils.ts and the AuthenticationButton.