From 80ab3c25ad0d4e032c787bbd2b43210e98842bac Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 23 Sep 2021 14:16:39 +0200 Subject: [PATCH] auth-backend: explicit pickBy type Signed-off-by: Patrik Oldsberg --- plugins/auth-backend/src/lib/oauth/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth-backend/src/lib/oauth/helpers.ts b/plugins/auth-backend/src/lib/oauth/helpers.ts index 17e3769d21..2bf8fa2520 100644 --- a/plugins/auth-backend/src/lib/oauth/helpers.ts +++ b/plugins/auth-backend/src/lib/oauth/helpers.ts @@ -36,7 +36,7 @@ export const readState = (stateString: string): OAuthState => { export const encodeState = (state: OAuthState): string => { const stateString = new URLSearchParams( - pickBy(state, value => value !== undefined), + pickBy(state, value => value !== undefined), ).toString(); return Buffer.from(stateString, 'utf-8').toString('hex');