Skip to content

Commit

Permalink
Small lint fix and a bit more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hzalaz committed Jan 30, 2017
1 parent 33e7482 commit ba6990f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Auth0/NativeAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion Auth0/WebAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit ba6990f

Please sign in to comment.