added getTokenFromUrl