refresh token
This commit is contained in:
parent
af29d0a54a
commit
a304e25629
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user