diff --git a/Lock/Lock.swift b/Lock/Lock.swift index 2300afbe8..f963a2e8f 100644 --- a/Lock/Lock.swift +++ b/Lock/Lock.swift @@ -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) @@ -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) diff --git a/README.md b/README.md index 7815adf4b..ebb257856 100644 --- a/README.md +++ b/README.md @@ -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