plmercereau/platyplus

View on GitHub
src/plugins/auth.js

Summary

Maintainability
A
1 hr
Test Coverage

Function install has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  install (Vue) {
    if (localStorage.getItem(AUTH_TOKEN)) { // TODO DRY as it is used elsewhere
      apolloClient.query({query: ME_QUERY}).then((res) => {
        store.commit(types.SET_USER, res.data.me)
      })
Severity: Minor
Found in src/plugins/auth.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status