Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Feb 1, 2021
1 parent fb192e8 commit a4abac3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions samples/generated/static-spa/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ function showSigninWidget() {
issuer: config.issuer,
state: JSON.stringify(config.state),
},
idps: config.idps.split(/\s+/).map(v => {
const parts = v.split(/:/);
if (parts.length == 2) {
return {type: parts[0], id: parts[1]};
idps: config.idps.split(/\s+/).map(idpToken => {
const [type, id] = idpToken.split(/:/);
if (!type || !id) {
return null;
}
return null;
}).filter(v => v)
return { type, id };
}).filter(idpToken => idpToken)
});

signIn.showSignInToGetTokens({
Expand Down
12 changes: 6 additions & 6 deletions samples/generated/webpack-spa/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ function showSigninWidget() {
issuer: config.issuer,
state: JSON.stringify(config.state),
},
idps: config.idps.split(/\s+/).map(v => {
const parts = v.split(/:/);
if (parts.length == 2) {
return {type: parts[0], id: parts[1]};
idps: config.idps.split(/\s+/).map(idpToken => {
const [type, id] = idpToken.split(/:/);
if (!type || !id) {
return null;
}
return null;
}).filter(v => v)
return { type, id };
}).filter(idpToken => idpToken)
});

signIn.showSignInToGetTokens({
Expand Down
12 changes: 6 additions & 6 deletions samples/templates/partials/spa/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ function showSigninWidget() {
issuer: config.issuer,
state: JSON.stringify(config.state),
},
idps: config.idps.split(/\s+/).map(v => {
const parts = v.split(/:/);
if (parts.length == 2) {
return {type: parts[0], id: parts[1]};
idps: config.idps.split(/\s+/).map(idpToken => {
const [type, id] = idpToken.split(/:/);
if (!type || !id) {
return null;
}
return null;
}).filter(v => v)
return { type, id };
}).filter(idpToken => idpToken)
});

signIn.showSignInToGetTokens({
Expand Down

0 comments on commit a4abac3

Please sign in to comment.