diff --git a/src/main/java/com/covas/Resources/TokenRessource.java b/src/main/java/com/covas/Resources/TokenRessource.java index 1b2bd20..77ccf7d 100644 --- a/src/main/java/com/covas/Resources/TokenRessource.java +++ b/src/main/java/com/covas/Resources/TokenRessource.java @@ -5,6 +5,7 @@ import java.time.Duration; import java.time.LocalDateTime; import javax.inject.Inject; +import javax.transaction.Transactional; import javax.ws.rs.CookieParam; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -41,6 +42,7 @@ public class TokenRessource { @GET @Produces(MediaType.APPLICATION_JSON) + @Transactional public Response tokenRefresh(@HeaderParam("Authorization") String auth, @CookieParam("user") String user, @CookieParam("jwt") String jwtCookie) { final int expires = 300; String name = "anonymous";