Skip to content

Commit

Permalink
Ensure bearer token formatted correctly for token auth.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Mar 20, 2023
1 parent 2083bd7 commit 299e61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/shared/KubeappsGrpcClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class KubeappsGrpcClient {
const auth: Interceptor = next => async req => {
const t = token ? token : Auth.getAuthToken();
if (t) {
req.header.set("Authorization", t);
req.header.set("Authorization", `Bearer ${t}`);
}
return await next(req);
};
Expand Down

0 comments on commit 299e61d

Please sign in to comment.