Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
safetcut-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
safetcut-app
Commits
ecbabcd5
Commit
ecbabcd5
authored
Oct 04, 2019
by
HaOuiha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authorization subscription
parent
50ce3fdc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
screens/Private/TimerScreen/TimerScreen.js
+1
-0
utils/apollo/apollo.js
+4
-3
No files found.
screens/Private/TimerScreen/TimerScreen.js
View file @
ecbabcd5
...
...
@@ -206,6 +206,7 @@ class TimerScreen extends PureComponent {
.
month
(
0
)
.
date
(
0
)
.
second
(
0
)
.
tz
(
'Asia/Bangkok'
)
.
valueOf
()
);
...
...
utils/apollo/apollo.js
View file @
ecbabcd5
...
...
@@ -22,9 +22,10 @@ const wsLink = new WebSocketLink({
uri
:
`wss://
${
BASE_URL
}
/graphql`
,
options
:
{
reconnect
:
true
,
// connectionParams: {
// headers: { Authorization: `Bearer ${T}` },
// },
connectionParams
:
async
()
=>
{
const
token
=
await
AsyncStorage
.
getItem
(
'token'
);
return
{
authorization
:
`Bearer
${
token
}
`
};
},
},
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment