diff --git a/Auth0/NativeAuth.swift b/Auth0/NativeAuth.swift index bfffaaa8..98f44915 100644 --- a/Auth0/NativeAuth.swift +++ b/Auth0/NativeAuth.swift @@ -27,12 +27,18 @@ import UIKit from a successul authentication with an IdP SDK as part of the NativeAuthTransaction process. */ public struct NativeAuthCredentials { - /// The OAuth2 access token returned by the IdP SDK + /// Access token returned by the IdP SDK let token: String - /// Any extras that may be necessary for certain Social IdP connections + /// Any extra attributes of the IdP that may be necessary during Auth with Auth0. let extras: [String: Any] - public init(token: String, extras: [String: Any]) { + /** + Creates a new instance of `NativeAuthCredentials` + + - parameter token: IdP access token that will be used to authenticate with Auth0 + - parameter extras: Any extra attributes returned by the IdP. + */ + public init(token: String, extras: [String: Any] = [:]) { self.token = token self.extras = extras } diff --git a/Auth0/WebAuth.swift b/Auth0/WebAuth.swift index 5ab91202..3e53ff70 100644 --- a/Auth0/WebAuth.swift +++ b/Auth0/WebAuth.swift @@ -82,7 +82,6 @@ public func resumeAuth(_ url: URL, options: [UIApplicationOpenURLOptionsKey: Any return TransactionStore.shared.resume(url, options: options) } - /// WebAuth Authentication using Auth0 public protocol WebAuth: Trackable, Loggable { var clientId: String { get }