Skip to content

Commit

Permalink
Use chance.auth0().tenantId() consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Aupajo committed Apr 10, 2024
1 parent acc4e3a commit 3aa7935
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mock/events/post-challenge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { identity } from "../identity";

export const postChallenge = define<Auth0.Events.PostChallenge>(
({ params }) => {
const tenantId = params.tenant?.id || chance.n(chance.word, 2).join("-");
const tenantId = params.tenant?.id || chance.auth0().tenantId();
const hostname = params.request?.hostname || `${tenantId}.auth0.com`;

const connectionValue = params.connection
Expand Down
2 changes: 1 addition & 1 deletion src/mock/events/post-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { chance } from "../chance";
import { identity } from "../identity";

export const postLogin = define<Auth0.Events.PostLogin>(({ params }) => {
const tenantId = params.tenant?.id || chance.n(chance.word, 2).join("-");
const tenantId = params.tenant?.id || chance.auth0().tenantId();
const hostname = params.request?.hostname || `${tenantId}.auth0.com`;

const connectionValue = params.connection
Expand Down
2 changes: 1 addition & 1 deletion src/mock/events/pre-user-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { identity } from "../identity";

export const preUserRegistration = define<Auth0.Events.PreUserRegistration>(
({ params }) => {
const tenantId = params.tenant?.id || chance.n(chance.word, 2).join("-");
const tenantId = params.tenant?.id || chance.auth0().tenantId();
const hostname = params.request?.hostname || `${tenantId}.auth0.com`;

const connectionValue = params.connection
Expand Down

0 comments on commit 3aa7935

Please sign in to comment.