forked from openid/AppAuth-iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to specify dispatch queue for the `performActionWithFreshT…
…okens` method To date, all AppAuth blocks execute on the main queue, including the user's own actions. This change allows the user to specify the queue that the action will be scheduled on in `performActionWithFreshTokens`. Unlike the rest of AppAuth's callbacks, this one is called frequently – for every API call – thus it is important for the user to determine on which dispatch queue it executes. OIDAuthState itself is not yet thread-safe, so all calls, including `performActionWithFreshTokens` should be performed on the main thread. This change also removes an unneeded duplicate dispatch on the main thread after token refresh (the callback is already dispatched on the main thread).
- Loading branch information
1 parent
65ef95c
commit b4ca39a
Showing
2 changed files
with
68 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters