Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
tbcare
tbcare-mobile
Commits
6367bb4f
Commit
6367bb4f
authored
May 29, 2021
by
Zafir Rasyidi Taufik
Browse files
[CHORES]Fix accidental change of token to idToken back to token
parent
701b325a
Pipeline
#79327
passed with stage
in 28 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/services/hooks/useMainService/index.tsx
View file @
6367bb4f
...
...
@@ -22,7 +22,7 @@ enum Method {
PUT
=
'
PUT
'
,
}
export
default
function
useMainService
(
idT
oken
:
string
)
{
export
default
function
useMainService
(
t
oken
:
string
)
{
// Private functions
async
function
fetchWithoutAuthentication
(
endpoint
:
string
,
...
...
@@ -45,7 +45,7 @@ export default function useMainService(idToken: string) {
)
{
return
await
axios
.
request
({
headers
:
{
Authorization
:
`
id
Token
${
idT
oken
}
`
,
Authorization
:
`Token
${
t
oken
}
`
,
},
url
:
API_MAIN_URL
+
endpoint
,
method
:
method
,
...
...
Write
Preview
Supports
Markdown
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