teableio/teable

View on GitHub
plugins/src/app/api/plugin/getToken/route.ts

Summary

Maintainability
A
1 hr
Test Coverage

Avoid too many return statements within this function.
Open

    return Response.json({ error: `getToken: ${res.error}` }, { status: 401 });
Severity: Major
Found in plugins/src/app/api/plugin/getToken/route.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return Response.json({
        accessToken: res.data.accessToken,
      });
    Severity: Major
    Found in plugins/src/app/api/plugin/getToken/route.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status