JWT 작업중

dev_token
kkw29 2 years ago
parent 94d9f7e90b
commit 23530d77c6

@ -33,8 +33,8 @@ import java.util.stream.Collectors;
public class TokenProvider {
private final TbUserAuthGroupRepo tbUserAuthGroupRepo;
private static final long ACCESS_TOKEN_EXPIRE_TIME = 20 * 60 * 1000L;
private static final long REFRESH_TOKEN_EXPIRE_TIME = 24 * 60 * 60 * 1000L;
private static final long ACCESS_TOKEN_EXPIRE_TIME = 5 * 60 * 1000L;
private static final long REFRESH_TOKEN_EXPIRE_TIME = 1 * 60 * 60 * 1000L;
private final Key key;

@ -94,14 +94,8 @@
})
.complete(function (data) {
if (data.status == 200) {
console.log('#####RESULT#####');
console.log(data);
// window.localStorage.setItem("accessToken", data);
document.cookie = 'accessToken=' + data.responseText + '; path=/;';
// console.log('#####header#####');
// console.log(data.response.headers);
// console.log(data.response.headers.get('Authorization'));
document.signinInfoForm.action = "<c:url value='/adm/main/actionSecurityLogin.do'/>";
document.signinInfoForm.submit();

Loading…
Cancel
Save