Skip to content

Commit

Permalink
feat: support for the docker spec oauth2 token (Joxit#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
xcaliburinhand authored May 3, 2023
1 parent b081108 commit ca7202d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export class Http {
}
if (bearer && bearer.token) {
req.setRequestHeader('Authorization', `Bearer ${bearer.token}`);
} else if (bearer && bearer.access_token) {
req.setRequestHeader('Authorization', `Bearer ${bearer.access_token}`);
} else {
req.withCredentials = true;
}
Expand Down

0 comments on commit ca7202d

Please sign in to comment.