Github Pages, https://account.github.io/project, callback-URL 404

Hello,

I have deployed my app to github pages.

myaccount.github.io/nameoftheproject/

I have setup the callback-url at the dashboard to include this url, but after I login and callback URL is triggered, I get a 404 page. I do not quite understand what goes wrong. I works perfectly in localhost, so I am guessing the /nameoftheproject/ route is complicating things. I am not sure how to circumvent that. I would appreciate any help.