Files
dancefinder-app/utils/auth.js
T

19 lines
501 B
JavaScript
Raw Normal View History

2019-01-15 13:21:24 +01:00
import AuthClient from './auth-client';
const getRedirectUri = () => {
return location ? `${location.origin}/authorize/` : "http://localhost:3000/authorize/";
};
const auth0Config = {
domain: "unbound.eu.auth0.com",
clientID: "orQfnvCPUR5C3mJkKoiWLQHOVQsBn60e",
redirectUri: getRedirectUri(),
audience: "http://dancefinder.unbound.se",
2019-01-15 13:21:24 +01:00
responseType: "token id_token",
2019-01-21 12:21:21 +01:00
scope: "openid profile readwrite:settings"
2019-01-15 13:21:24 +01:00
};
const webAuth = new AuthClient(auth0Config);
export default webAuth;