Fix typo with SSO authentication completion handler type alias.

This commit is contained in:
SBiOSoftWhare 2021-01-08 16:33:31 +01:00
parent 5a5122a6ec
commit 3f3a06753a
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ final class LegacySSOAuthentificationSession: SSOAuthentificationSessionProtocol
func setContextProvider(_ contextProvider: SSOAuthenticationSessionContextProviding) {
}
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthentificationSessionCompletionHandler) {
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthenticationSessionCompletionHandler) {
let authentificationSession = SFAuthenticationSession(url: url, callbackURLScheme: callbackURLScheme) { (callbackURL, error) in

View file

@ -49,7 +49,7 @@ final class SSOAuthentificationSession: SSOAuthentificationSessionProtocol {
self.contextProvider = contextProvider
}
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthentificationSessionCompletionHandler) {
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthenticationSessionCompletionHandler) {
let authentificationSession = ASWebAuthenticationSession(url: url, callbackURLScheme: callbackURLScheme) { (callbackURL, error) in

View file

@ -21,7 +21,7 @@ enum SSOAuthentificationSessionError: Error {
}
/// A completion handler the session calls when it completes successfully, or when the user cancels the session.
public typealias SSOAuthentificationSessionCompletionHandler = (URL?, Error?) -> Void
public typealias SSOAuthenticationSessionCompletionHandler = (URL?, Error?) -> Void
/// An interface the session uses to ask a delegate for a presentation context.
protocol SSOAuthenticationSessionContextProviding {
@ -42,5 +42,5 @@ protocol SSOAuthentificationSessionProtocol {
/// - url: A URL with the http or https scheme pointing to the authentication webpage.
/// - callbackURLScheme: The custom URL scheme that the app expects in the callback URL.
/// - completionHandler: A completion handler the session calls when it completes successfully, or when the user cancels the session.
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthentificationSessionCompletionHandler)
func authenticate(with url: URL, callbackURLScheme: String?, completionHandler: @escaping SSOAuthenticationSessionCompletionHandler)
}