add transactional

This commit is contained in:
Valentin CZERYBA 2022-08-07 18:11:13 +02:00
parent a555239514
commit dfe75ea040

View File

@ -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";