я получаю этот URL после того, как я аутентифицирован GoogleКак получить маркер доступа от URL
http://localhost:3000/_oauth/google#access_token=ya29.5HxuYol1Io8JLeGePDznbfkkwu_PC4uodKwG8_1clFYAn9AgdOV1WGpOTNQP3s76HAsn7Y4zWw&token_type=Bearer&expires_in=3600
Как получить access_token
значение из этого URL?
Я попытался решения в следующих URLs, ни один из них не работают
How can I get query string values in JavaScript?
How to get the value from the GET parameters?
Using the GET parameter of a URL in JavaScript
Я тоже люблю Regex! Хороший ответ –