SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

Improve auth container response handling #188

Closed cheungpat closed 6 years ago

cheungpat commented 6 years ago

This changeset modifies the way auth response is handled. SKYAuthOperation is added and it should be subclassed by all operations that handle auth response. Upon completing the operation, the operation calls the auth response delegate, which is implemented by SKYAuthContainer. The SKYAuthContainer is then responsible to update current user record and access token.

This allows the auth container to have access to the auth response, which will have additional information not otherwise exposed by auth-related operations.

carmenlau commented 6 years ago

💯