refactor: Coding style changes
This commit is contained in:
committed by
Stuart Taylor
parent
a7bbd96d46
commit
ec028d7a59
@ -33,8 +33,7 @@ export default function(UserIdent) {
|
|||||||
// get the social provider data and the external id from auth0
|
// get the social provider data and the external id from auth0
|
||||||
profile.id = profile.id || profile.openid;
|
profile.id = profile.id || profile.openid;
|
||||||
const auth0IdString = '' + profile.id;
|
const auth0IdString = '' + profile.id;
|
||||||
const socialExtId = auth0IdString.substring(auth0IdString.indexOf('|') + 1);
|
const [ provider, socialExtId ] = auth0IdString.split('|');
|
||||||
const provider = auth0IdString.substring(0, auth0IdString.indexOf('|'));
|
|
||||||
const query = {
|
const query = {
|
||||||
where: {
|
where: {
|
||||||
provider: provider,
|
provider: provider,
|
||||||
|
Reference in New Issue
Block a user