refresh token

This commit is contained in:
Filip Izydorczyk 2021-01-20 16:05:43 +01:00
parent af29d0a54a
commit a304e25629

View File

@ -165,7 +165,7 @@ public class User {
public void setToken(String token) {
this.tokenUsageDate = new Timestamp(System.currentTimeMillis());
this.token = token;
this.refreshToken = UUID.randomUUID().toString();
this.refreshToken = this.refreshToken == null ? UUID.randomUUID().toString() : this.refreshToken;
}
/**