Iam creating an application where I am trying to authentivate a user with eventbrite. With reference of doc I include the javascript in my application and it generates a CONNECT WITH EVENTBRITE link in my app.
When I click this button It takes me to the url:
https://www.eventbrite.com/oauth/authorize?response_type=token&client_id=xxxxxxxxxxxx
(Here client id is the eventbrite app key of my application.)
When the user ALLOWS the application to access the evenbrite account it redirects me to my application with the following url:
http://localhost:3000/#token_type=Bearer&access_token=yyyyyyyyyyyyyyyyyyyy
I want the access token in the url to access a user's information. I tried to parse url using URI. But I didn't find it the best way to do so.. Can anyone please tell me a good solution to extract the access_token from the above url.