Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss committed Aug 28, 2024
1 parent 5a0541f commit 5973171
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/auth/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export class AuthGuard implements CanActivate {
try {
return !!(await this.authService.validateToken(token, processorType));
} catch {
return !!(await this.authService.validateToken(token, JwtProcessorType.BEARER));
return !!(await this.authService.validateToken(
token,
JwtProcessorType.BEARER,
));
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/auth/jwt/jwt.token.bearer.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export class JwtBearerTokenProcessor extends JwtTokenProcessor {
}
}

private async decodeAndVerifyToken(token: string, kid: string): Promise<unknown> {
private async decodeAndVerifyToken(
token: string,
kid: string,
): Promise<unknown> {
try {
return await this.keyCloakService.verifyToken(token, kid);
} catch (e) {
Expand Down
5 changes: 4 additions & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Taken from PortSwigger's prototype pollution labs
// VULNERABLE TO PROTOTYPE POLLUTION!
const splitUriIntoParamsPPVulnerable = (params, coerce = undefined): Record<string, unknown> => {
const splitUriIntoParamsPPVulnerable = (
params,
coerce = undefined,
): Record<string, unknown> => {
if (params.charAt(0) === '?') {
params = params.substring(1);
}
Expand Down

0 comments on commit 5973171

Please sign in to comment.