Passwordless with Lock.js got error "At least one database, enterprise or social connection needs to be available."

Information:

  • Which SDK this is regarding: Lock v11
  • SDK Version: 11.28.1
  • Platform Version: Vuejs 2.6.12
  • Code Snippets/Error Messages/Supporting Details/Screenshots:
    Something went wrong.
    Please contact technical support.
    Console log: “Error: At least one database, enterprise or social connection needs to be available.”

Hello all, I’m trying to implement passwordless for embedded login with Lock.js. I have enabled “email” connection in Passwordless Connections and “email” connection in Application Connections.
This is my code
this.lock = new Auth0LockPasswordless(options.clientId, options.domain, {
allowedConnections: [
‘email’
],
passwordlessMethod: ‘code’,
auth: {
responseType: ‘token id_token’,
sso: false,
params: {
scope: ‘openid profile’
}
}
});