Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

expiry data of jwt token

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