Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b1085 commit b940153Copy full SHA for b940153
web-app/src/environment.ts
@@ -11,3 +11,4 @@ export const GQL_URI: string =
11
export const DEBUG: boolean = (process.env.REACT_APP_DEBUG || '').toLowerCase() === 'true'
12
export const VERSION: string = process.env.VERSION || 'unknown'
13
export const NODE_ENV: string = process.env.NODE_ENV || 'production'
14
+export const AUTH_TOKEN: string | null = process.env.AUTH_TOKEN || null
web-app/src/services/apollo/auth.ts
@@ -1,6 +1,7 @@
1
import { Operation } from 'apollo-boost'
2
+import { AUTH_TOKEN } from '../../environment'
3
-let authToken: string | null = null
4
+let authToken: string | null = AUTH_TOKEN || null
5
6
export const setAuthToken = (token: string | null) => {
7
authToken = token
0 commit comments