Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

expiry data of jwt token

const isTokenExpired = token => Date.now() >= (JSON.parse(atob(token.split('.')[1]))).exp * 1000
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #expiry #data #jwt #token
ADD COMMENT
Topic
Name
1+1 =