Skip to content

Commit

Permalink
Merge pull request #441 from auth0/changed-documentation-passwordless
Browse files Browse the repository at this point in the history
Added Grant information for Passwordless docheaders
  • Loading branch information
cocojoe authored Jul 5, 2017
2 parents 5eacc80 + 4573a9f commit 281a418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 281a418

Please sign in to comment.