-
Notifications
You must be signed in to change notification settings - Fork 20
Description
When a user presses Enter in the username or password field of the LoginActivity (possible in Swiftkey, can't speak for AOSP keyboard), he is directed to the redirect URL of his API with an access denied info in the URL params.
This triggers the parsing of the TokenURL but crashes the Matcher (because obviously, there are no tokens to be found).
Surrounding the matching parts with try/catch and setting the WebView URL to the original one in the catch part - together with a Toast for the user reminding him to click on allow - is a hacky but quick way to solve the problem.
As this part will probably the most copied one, a fix would be great. Another question: Is the API actually working as it should if it redirects the user even when access is denied?
Other than that, I really enjoy working with your API, keep the great work up!
Cheers,
Rob