This question already has an answer here:
I'm getting this URL after I'm authenticated to Google
http://localhost:3000/_oauth/google#access_token=ya29.5HxuYol1Io8JLeGePDznbfkkwu_PC4uodKwG8_1clFYAn9AgdOV1WGpOTNQP3s76HAsn7Y4zWw&token_type=Bearer&expires_in=3600
How to get access_token
value from this url?
I tried solutions in following urls, none of them are working
How can I get query string values in JavaScript?
Make use of the URL class in JS:
I like RegEx so here's a RegEx answer:
access_token
is:(Directly from the console)
Fiddle