Fixed pointer issue on handleOAuthURL function by changing var types