mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
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:
@@ -62,7 +62,7 @@ public class JWTTokenProvider implements AuthorizationProvider {
|
||||
if (Instant.now().isAfter(validUntil)) {
|
||||
token = refreshJWT();
|
||||
}
|
||||
return token;
|
||||
return String.format("Bearer %s", token);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user