Skip to content

Commit

Permalink
Move claims param to client setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs committed Sep 8, 2021
1 parent ac9187b commit 6b9660f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,16 @@ <h3 class="mb-3">Client Options</h3>

_self.clientOptions = JSON.stringify(clientOptions, null, 2);

if (_self.organization) {
const claims = {
id_token: {
org_id: { values: [_self.organization] }
}
};

clientOptions.claims = JSON.stringify(claims);
}

var _init = function (auth0) {
_self.auth0 = auth0;
window.auth0 = auth0; // Cypress integration tests support
Expand Down

0 comments on commit 6b9660f

Please sign in to comment.