TomFrost/Embassy

View on GitHub
src/Token.ts

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%

File Token.ts has 269 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Embassy
 * Copyright (c) 2017-2021 Tom Shawver
 */

Severity: Minor
Found in src/Token.ts - About 2 hrs to fix

    Function sign has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async sign(kid: string, opts: TokenSigningOptions = {}): Promise<string> {
        if (!opts.subject && !this.claims.sub) {
          throw new Error('A subject is required to sign this token')
        }
        this.encodeBlobs()
    Severity: Minor
    Found in src/Token.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status