diff --git a/security-jwt/src/main/java/io/micronaut/security/token/jwt/endpoints/TokenRefreshRequest.java b/security-jwt/src/main/java/io/micronaut/security/token/jwt/endpoints/TokenRefreshRequest.java index 7d6bcc7257..4a3856e3de 100644 --- a/security-jwt/src/main/java/io/micronaut/security/token/jwt/endpoints/TokenRefreshRequest.java +++ b/security-jwt/src/main/java/io/micronaut/security/token/jwt/endpoints/TokenRefreshRequest.java @@ -50,12 +50,22 @@ public TokenRefreshRequest() { } * * @param refreshToken Refresh token */ - @Creator public TokenRefreshRequest(String refreshToken) { this.grantType = GRANT_TYPE_REFRESH_TOKEN; this.refreshToken = refreshToken; } + /** + * + * @param grantType Grant type + * @param refreshToken Refresh token + */ + @Creator + public TokenRefreshRequest(String grantType, String refreshToken) { + this.grantType = grantType; + this.refreshToken = refreshToken; + } + /** * grantType getter. * @return e.g refresh_token