Closed LukasPoque closed 2 years ago
Maybe this is no real problem/bug. The developers should ensure that their onAuthSuccess
callbacks couldn't throw anything if they don't want this behavior.
In my opinion, this should be better documented!
This problem should be fixed with #11
If the
onAuthSuccess
callback in theOAuthProxyFlow
throws an exception, thegetAccessToken
method couldn't return the token and tries it untilmaxRetryPickup
is reached.See https://github.com/LukasPoque/s3i_flutter/blob/7e3e0bb29345a2bed7868f753efd3efd0acca868/lib/src/auth/oauth_proxy_flow.dart#L149 :
The problem is that an exception in
onAuthSuccess
is caught.