fix: lint-error
This commit is contained in:
+7
-4
@@ -1,13 +1,16 @@
|
||||
import { ApolloClient } from 'apollo-client'
|
||||
import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory'
|
||||
import {
|
||||
InMemoryCache,
|
||||
IntrospectionFragmentMatcher
|
||||
} from 'apollo-cache-inmemory'
|
||||
import { createHttpLink } from 'apollo-link-http'
|
||||
import { setContext } from 'apollo-link-context'
|
||||
import { useAuth } from './auth'
|
||||
import { provide } from '@vue/composition-api'
|
||||
import introspectionQueryResultData from '../fragmentTypes.json'
|
||||
import { onGlobalSetup } from 'nuxt-composition-api'
|
||||
import { DefaultApolloClient } from '@vue/apollo-composable'
|
||||
import Vue from 'vue'
|
||||
import introspectionQueryResultData from '../fragmentTypes.json'
|
||||
import { useAuth } from './auth'
|
||||
|
||||
const apiUrl = process.env.graphqlApi || '/query'
|
||||
|
||||
@@ -21,7 +24,7 @@ const httpLink = createHttpLink({
|
||||
uri: apiUrl
|
||||
})
|
||||
|
||||
const getToken = async (options) => {
|
||||
const getToken = async options => {
|
||||
const { getTokenSilently } = useAuth()
|
||||
return getTokenSilently.value(options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user