'Intercept auth token from gmail auth in webview

I recieve an url for gmail (or appleID) auth from my backend identity service and loadUrl() in android WebView. How do i intercept a response with token when user's auth is successful?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source