Skip to content

Commit

Permalink
refactor: update environment variable name in user.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kleberbaum committed May 23, 2024
1 parent f4ce78e commit 0f38822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class UserService {
}

static async getIsUnique(loginName: string): Promise<any> {
const apiKey = process.env.ZITADEL_API_KEY ?? 'API_KEY';
const apiKey = process.env.ORG_USER_MANAGER_TOKEN ?? 'API_KEY';
let url = "";

try {
Expand Down Expand Up @@ -93,7 +93,7 @@ export class UserService {

// Create the user
const url = `${process.env.AUTH_ISSUER}/management/v1/users/human/_import`;
const apiKey = process.env.ZITADEL_API_KEY ?? 'API_KEY';
const apiKey = process.env.ORG_USER_MANAGER_TOKEN ?? 'API_KEY';

try {
if (!await UserService.getIsUnique(username) || !await UserService.getIsUnique(emailAddress)) {
Expand Down

0 comments on commit 0f38822

Please sign in to comment.