hot get access token instead of url

Solutions on MaxInterview for hot get access token instead of url by the best coders in the world

showing results for - "hot get access token instead of url"
Marco
30 Jan 2021
1var urlString = 'http://localhost:3000/_oauth/google#access_token=ya29.5HxuYol1Io8JLeGePDznbfkkwu_PC4uodKwG8_1clFYAn9AgdOV1WGpOTNQP3s76HAsn7Y4zWw&token_type=Bearer&expires_in=3600';
2
3var url = new URL(urlString);
4// OR: If you want to use the current page's URL
5var url = window.location;
6
7var access_token = new URLSearchParams(url.search).get('access_token');