Fied the authorization url function:
Yeah it was pretty messed up... I really suck at coding tired