Skip to content

Commit 0d0f2b3

Browse files
azaslonovalzaslon
andauthored
Replaced logging to console with error when mapping grant types. (#1897)
Co-authored-by: Alexander Zaslonov <[email protected]>
1 parent 2514e77 commit 0d0f2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/authorizationServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class AuthorizationServer {
4747
convertedResult = "password";
4848
break;
4949
default:
50-
console.log(`Unsupported grant type ${item}`);
50+
throw new Error(`Unsupported grant type "${item}".`);
5151
}
5252
if (convertedResult) {
5353
result.push(convertedResult);

0 commit comments

Comments
 (0)