Skip to content

Commit 6a28d06

Browse files
author
Artem Shteltser
committed
Small validation
1 parent 5d63fd0 commit 6a28d06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/auth/OAuth/validate-options.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ export function validateOptions(auth: AuthOptions): void {
77
) {
88
throw new Error(`Specify client id and client secret for authentication`)
99
}
10+
11+
if (!auth.grant_type) {
12+
throw new Error(`Specify grant type`)
13+
}
1014
}

0 commit comments

Comments
 (0)