Chocobozzz/PeerTube

View on GitHub
client/src/app/core/auth/auth.service.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  refreshAccessToken () {
    if (this.refreshingTokenObservable) return this.refreshingTokenObservable
    if (!this.getAccessToken()) return throwError(() => new Error($localize`You need to reconnect`))

    logger.info('Refreshing token...')
Severity: Minor
Found in client/src/app/core/auth/auth.service.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status