Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Grant information for Passwordless docheaders #441

Merged
merged 2 commits into from
Jul 5, 2017
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
2 changes: 2 additions & 0 deletions Lock/Lock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public class Lock: NSObject {
- Domain: your Auth0 domain

- returns: a newly created Lock Passwordless instance
- requires: Legacy Grant `http://auth0.com/oauth/legacy/grant-type/ro`. Check [our documentation](https://auth0.com/docs/clients/client-grant-types) for more info and how to enable it.
*/
public static func passwordless() -> Lock {
return self.init(authentication: Auth0.authentication(), webAuth: Auth0.webAuth(), classic: false)
Expand All @@ -113,6 +114,7 @@ public class Lock: NSObject {
- parameter domain: Your Auth0 account domain

- returns: a newly created Lock passwordless instance
- requires: Legacy Grant `http://auth0.com/oauth/legacy/grant-type/ro`. Check [our documentation](https://auth0.com/docs/clients/client-grant-types) for more info and how to enable it.
*/
public static func passwordless(clientId: String, domain: String) -> Lock {
return Lock(authentication: Auth0.authentication(clientId: clientId, domain: domain), webAuth: Auth0.webAuth(clientId: clientId, domain: domain), classic: false)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ Lock provides many styling options to help you apply your own brand identity to

Lock Passwordless handles authentication using Passwordless & Social Connections.

> The Passwordless feature requires your client to have the *Resource Owner* Legacy Grant Type enabled. Check [this article](https://auth0.com/docs/clients/client-grant-types) for more information.

To show Lock, add the following snippet in your `UIViewController`

```swift
Expand Down