Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
author: Auth0
author_url: https://auth0.com
github_url: https://github.com/auth0/Auth0.swift
podspec: Auth0.podspec
output: Docs
clean: true
theme: fullwidth
sdk: iphoneos
undocumented_text: ""
2 changes: 1 addition & 1 deletion .shiprc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"Auth0.podspec": [],
"README.md": ["~> {MAJOR}.{MINOR}"]
},
"postbump": "bundle update",
"postbump": "bundle update && bundle exec jazzy",
"prefixVersion": false
}
8 changes: 4 additions & 4 deletions Auth0/Auth0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public typealias WebAuthResult<T> = Result<T, WebAuthError>
public typealias CredentialsManagerResult<T> = Result<T, CredentialsManagerError>

/**
Default scope value used across Auth0.swift.
Default scope value used across Auth0.swift. Equals to `openid profile email`.
*/
public let defaultScope = "openid profile email"

Expand All @@ -36,7 +36,7 @@ public let defaultScope = "openid profile email"

- Parameters:
- clientId: ClientId of your Auth0 application.
- domain: Domain of your Auth0 account. e.g.: 'samples.auth0.com'.
- domain: Domain of your Auth0 account, e.g. 'samples.auth0.com'.
- session: Instance of `URLSession` used for networking. By default it will use the shared `URLSession`.
- Returns: Auth0 Authentication API.
*/
Expand Down Expand Up @@ -134,7 +134,7 @@ public func users(token: String, session: URLSession = .shared, bundle: Bundle =

- Parameters:
- token: Token of Management API v2 with the correct allowed scopes to perform the desired action.
- domain: Domain of your Auth0 account. e.g.: 'samples.auth0.com'.
- domain: Domain of your Auth0 account, e.g. 'samples.auth0.com'.
- session: Instance of `URLSession` used for networking. By default it will use the shared `URLSession`.
- Returns: Auth0 Management API v2.
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ public func webAuth(session: URLSession = .shared, bundle: Bundle = Bundle.main)

- Parameters:
- clientId: ClientId of your Auth0 application.
- domain: Domain of your Auth0 account. e.g.: 'samples.auth0.com'.
- domain: Domain of your Auth0 account, e.g. 'samples.auth0.com'.
- session: Instance of `URLSession` used for networking. By default it will use the shared `URLSession`.
- Returns: Auth0 WebAuth component.
*/
Expand Down
12 changes: 7 additions & 5 deletions Auth0/Auth0Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ let unknownError = "a0.sdk.internal_error.unknown"
let nonJSONError = "a0.sdk.internal_error.plain"
let emptyBodyError = "a0.sdk.internal_error.empty"

/**
Generic representation of Auth0 errors. ``AuthenticationError``, ``ManagementError``, ``WebAuthError``, and
``CredentialsManagerError`` conform to this protocol.
*/
public protocol Auth0Error: LocalizedError, CustomDebugStringConvertible {

/**
The underlying `Error`, if any. Defaults to `nil`.
The underlying `Error`, if any.
*/
var cause: Error? { get }

Expand All @@ -16,7 +20,7 @@ public protocol Auth0Error: LocalizedError, CustomDebugStringConvertible {
public extension Auth0Error {

/**
The underlying `Error`, if any. Defaults to `nil`.
Defaults to `nil`.
*/
var cause: Error? { return nil }

Expand All @@ -37,9 +41,7 @@ public extension Auth0Error {
}

/**
Generic representation of Auth0 API errors.

- Note: It's recommended to use either `AuthenticationError` or `ManagementError` for better error handling.
Generic representation of Auth0 API errors. ``AuthenticationError`` and ``ManagementError`` conform to this protocol.
*/
public protocol Auth0APIError: Auth0Error {

Expand Down
Loading