auth-backend: explicit pickBy type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-09-23 14:16:39 +02:00
parent 07bd9068b4
commit 80ab3c25ad
@@ -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<string>(state, value => value !== undefined),
).toString();
return Buffer.from(stateString, 'utf-8').toString('hex');