CredentialsDelegate
@objc
public protocol CredentialsDelegate
Protocol that defines the methods of a Credentials delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onAccessTokenRetrieveError(error: RetrieveAccessTokenError)
Parameters
error
An error object indicating why the operation failed.
-
Notifies the delegate that the operation completed successfully.
Note
If a flow requires this optional method and it is not implemented, thenonAccessTokenRetrieveError(error:)
will be called.Declaration
Swift
@MainActor @objc optional func onAccessTokenRetrieveCompleted(result: MSALNativeAuthTokenResult)
Parameters
result
The access token result.