mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix typo with SSO authentication completion handler type alias.
This commit is contained in:
parent
5a5122a6ec
commit
3f3a06753a
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue