Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb940153

Browse files
committed
add auth token option
1 parent79b1085 commitb940153

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎web-app/src/environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ export const GQL_URI: string =
1111
exportconstDEBUG:boolean=(process.env.REACT_APP_DEBUG||'').toLowerCase()==='true'
1212
exportconstVERSION:string=process.env.VERSION||'unknown'
1313
exportconstNODE_ENV:string=process.env.NODE_ENV||'production'
14+
exportconstAUTH_TOKEN:string|null=process.env.AUTH_TOKEN||null

‎web-app/src/services/apollo/auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import{Operation}from'apollo-boost'
2+
import{AUTH_TOKEN}from'../../environment'
23

3-
letauthToken:string|null=null
4+
letauthToken:string|null=AUTH_TOKEN||null
45

56
exportconstsetAuthToken=(token:string|null)=>{
67
authToken=token

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp