Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-user
Commits
206b06d3
Unverified
Commit
206b06d3
authored
2 years ago
by
Mahesh Maney R
Committed by
GitHub
2 years ago
Browse files
Options
Download
Patches
Plain Diff
extending the JWT time
parent
0ab4b495
master
delete-user
delete-user-fix
increase_timeout
institute-district
sessionTimeout
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
+1
-1
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
with
1 addition
and
1 deletion
+1
-1
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
+
1
−
1
View file @
206b06d3
...
...
@@ -75,7 +75,7 @@ public class JwtTokenUtil implements Serializable {
claims
.
put
(
CLAIMS_KEY
,
Arrays
.
asList
(
new
SimpleGrantedAuthority
(
JWT_GRANTED_AUTHORITY
)));
return
Jwts
.
builder
().
setClaims
(
claims
).
setIssuer
(
JWT_ISSUER
).
setIssuedAt
(
new
Date
(
System
.
currentTimeMillis
()))
.
setExpiration
(
new
Date
(
System
.
currentTimeMillis
()
+
appConfig
.
getJwtValidity
()
*
60
*
1000
))
.
setExpiration
(
new
Date
(
System
.
currentTimeMillis
()
+
appConfig
.
getJwtValidity
()
*
60
*
1000
0
))
.
signWith
(
SignatureAlgorithm
.
HS256
,
SIGNING_KEY
).
compact
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets