Perspective launch URL

is there any way to get the URL from the perspective launch in browser. I am using azure ad to authorize my log ins. And the access token is in the URL when the user successfully logs in. However, I can't find a way to get the access token from the browser URL in perspective to authenticate my API. Is there a way to do this?