add transactional
This commit is contained in:
parent
a555239514
commit
dfe75ea040
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user