the following code fails and displays: “Something went wrong. Please contact technical support.” to because of the allowedConnections option. if i delete the allowedConnections, it works fine.
Any idea what i am doing wrong here?
import { setSecret } from ‘./auth’
import uuid from ‘uuid’
const getLock = (options) => {
const config = require(‘…/config.json’)
const Auth0Lock = require(‘auth0-lock’).default
return new Auth0Lock(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_DOMAIN, options)
}
const getBaseUrl = () => ${window.location.protocol}//${window.location.host}
const getOptions = (container) => {
const secret = uuid.v4()
setSecret(secret)
return {
container,
closable: false,
allowedConnections: [“twitter”, “facebook”],
auth: {
responseType: ‘token id_token’,
redirectUrl: ${getBaseUrl()}/auth/signed-in
,
params: {
scope: ‘openid profile email’,
state: secret,
}
}
}
}
export const show = (container) => getLock(getOptions(container)).show()
export const logout = () => getLock().logout({ returnTo: getBaseUrl() })