ThinkDeepTech/thinkdeep

View on GitHub
packages/deep-economic-analyzer/graphql/client.js

Summary

Maintainability
A
1 hr
Test Coverage

Function initApolloClient has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const initApolloClient = async (user) => {
  const authHeaders = (_user) => {
    return {
      authorization: _user?.accessToken ? `Bearer ${_user.accessToken}` : '',
      me: _user?.idToken ? _user.idToken : '',
Severity: Minor
Found in packages/deep-economic-analyzer/graphql/client.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status