Fakultas Ilmu Komputer UI

Commit 6367bb4f authored by Zafir Rasyidi Taufik's avatar 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
......@@ -22,7 +22,7 @@ enum Method {
PUT = 'PUT',
}
export default function useMainService(idToken: string) {
export default function useMainService(token: string) {
// Private functions
async function fetchWithoutAuthentication(
endpoint: string,
......@@ -45,7 +45,7 @@ export default function useMainService(idToken: string) {
) {
return await axios.request({
headers: {
Authorization: `idToken ${idToken}`,
Authorization: `Token ${token}`,
},
url: API_MAIN_URL + endpoint,
method: method,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment