Skip to content

Commit 818eac2

Browse files
committed
chore: lint
1 parent be656bf commit 818eac2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/utils/generateAuthUrl.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe("generateAuthUrl", () => {
213213
domain,
214214
IssuerRouteTypes.login,
215215
options,
216-
{ disableUrlSanitization: true }
216+
{ disableUrlSanitization: true },
217217
);
218218
const nonce = result.url.searchParams.get("nonce");
219219
expect(nonce).not.toBeNull();

lib/utils/mapLoginMethodParamsForUrl.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export const mapLoginMethodParamsForUrl = (
1010
is_create_org: options.isCreateOrg?.toString(),
1111
connection_id: options.connectionId,
1212
redirect_uri: options.redirectURL
13-
? disableUrlSanitization ? options.redirectURL : sanitizeUrl(options.redirectURL)
13+
? disableUrlSanitization
14+
? options.redirectURL
15+
: sanitizeUrl(options.redirectURL)
1416
: undefined,
1517
audience: options.audience || "",
1618
scope: options.scope?.join(" ") || "email profile openid offline",

0 commit comments

Comments
 (0)