fix: wrong condition
This commit is contained in:
parent
922f3b56a1
commit
adc744e8b5
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import HttpError from "../interfaces/http-error";
|
|||
import HttpStatusCode from "../interfaces/http-status";
|
||||
import { JwtPayload } from "jsonwebtoken";
|
||||
|
||||
if (!(process.env.PUBLIC_KEY && process.env.REALM_URL)) {
|
||||
if (!process.env.PUBLIC_KEY && !process.env.REALM_URL) {
|
||||
throw new Error("Require public key or realm url.");
|
||||
}
|
||||
if (process.env.PUBLIC_KEY && process.env.REALM_URL && !process.env.PREFERRED_AUTH) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue