refresh token
This commit is contained in:
1 parent
af29d0a54a
commit
a304e25629
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user