diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-05 23:33:50 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-05 23:33:50 +0100 |
| commit | f6e6b1edbbb68bf6bf93a10deebd4cd55ffaff0f (patch) | |
| tree | bb44de81746cfd088bfab49247b9ec8508bb4605 /animism-align/frontend/app/api/crud.fetch.js | |
| parent | 6726fa9fe050aa47ff7f537b91705372e290f501 (diff) | |
use other login validator thingie
Diffstat (limited to 'animism-align/frontend/app/api/crud.fetch.js')
| -rw-r--r-- | animism-align/frontend/app/api/crud.fetch.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/animism-align/frontend/app/api/crud.fetch.js b/animism-align/frontend/app/api/crud.fetch.js index a8d4a0d..ddcd80b 100644 --- a/animism-align/frontend/app/api/crud.fetch.js +++ b/animism-align/frontend/app/api/crud.fetch.js @@ -55,7 +55,7 @@ export function _get_headers() { credentials: 'same-origin', headers: { 'Accept': 'application/json', - 'Authorization': "JWT " + session.get("access_token"), + 'Authorization': "Bearer " + session.get("access_token"), }, } } @@ -66,7 +66,7 @@ export function post(data) { credentials: 'same-origin', headers: { 'Accept': 'application/json', - 'Authorization': "JWT " + session.get("access_token"), + 'Authorization': "Bearer " + session.get("access_token"), 'Content-Type': 'application/json' }, } @@ -78,7 +78,7 @@ export function postBody(data) { credentials: 'same-origin', headers: { 'Accept': 'application/json', - 'Authorization': "JWT " + session.get("access_token"), + 'Authorization': "Bearer " + session.get("access_token"), }, } } @@ -89,7 +89,7 @@ export function put(data) { credentials: 'same-origin', headers: { 'Accept': 'application/json', - 'Authorization': "JWT " + session.get("access_token"), + 'Authorization': "Bearer " + session.get("access_token"), 'Content-Type': 'application/json' }, } @@ -101,7 +101,7 @@ export function destroy(data) { credentials: 'same-origin', headers: { 'Accept': 'application/json', - 'Authorization': "JWT " + session.get("access_token"), + 'Authorization': "Bearer " + session.get("access_token"), 'Content-Type': 'application/json' }, } |
