Need advice on how to get token from request

Let`s say a visitor of my website logs in thru other api. He goes by the link I gave him that includes redirect link(localhost:8080/login) after he autorized authorization api redirects him to http://localhost:8080/#access_token=e680adf29b8aa7c79c263a743b25d369ec72892401e9de379f8064f2c9bac777a35f0148eb4abde523fe9&expires_in=86400&user_id=8824126
what is the best way to get the “access_token”

Appreciate your answers and sorry if the question looks trivial

You can get the fragment (everything after #) using getPage().getUriFragment()

awesome, thank you