mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Use bearer token for auth
This commit is contained in:
parent
8ac4508ed8
commit
a57cf7c149
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ export function authHeader() {
|
|||
const currentUser = authenticationService.currentUserValue;
|
||||
if (currentUser && currentUser.auth_token) {
|
||||
return {
|
||||
Authorization: `${currentUser.auth_token}`,
|
||||
Authorization: `Bearer ${currentUser.auth_token}`,
|
||||
'Content-Type': 'application/json'
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue