Skip to content

Commit

Permalink
feat(authentication): change headers variable from const back to let
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMi committed Mar 6, 2023
1 parent d46afd5 commit 609cfe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuxt/plugins/urql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export default defineNuxtPlugin(async (nuxtApp) => {
const store = useMaevsiStore(nuxtApp.$pinia)
const jwt = store.jwt
const turnstileKey = store.turnstileKey
const headers = {} as Record<string, any>
let headers = {} as Record<string, any>

if (jwt) {
consola.trace('GraphQL request authenticated with: ' + jwt)
headers = { ...headers, authorization: `Bearer ${jwt}` }
Expand Down

0 comments on commit 609cfe4

Please sign in to comment.