integreat-io/integreat-authenticator-jwt

View on GitHub
src/authenticate.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function authenticate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default async function authenticate(
  options: JwtOptions | null,
  action: Action | null,
): Promise<JwtAuthentication> {
  if (!action) {
Severity: Minor
Found in src/authenticate.ts - About 1 hr to fix

    Function createAuthenticationWithSignedJwt has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      payload: Record<string, unknown>,
      key: string,
      algorithm: jwt.Algorithm,
      audience: string,
      expiresIn?: string,
    Severity: Minor
    Found in src/authenticate.ts - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status