fix: JWTTokenProvider has an incorrect value for the returned authorization header

more info:
https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app
This commit is contained in:
Marcos.Cela
2021-01-07 11:23:22 +01:00
parent cdede298a9
commit 44a8b797fb

View File

@@ -62,7 +62,7 @@ public class JWTTokenProvider implements AuthorizationProvider {
if (Instant.now().isAfter(validUntil)) {
token = refreshJWT();
}
return token;
return String.format("Bearer %s", token);
}
}