issues
search
fac19
/
Week8-BFOP
https://snippetsofcode.herokuapp.com/
0
stars
2
forks
source link
Verify with server that token is legitimate (rather than just that there is a token)
#21
Closed
Ivo-Evans
closed
4 years ago
Ivo-Evans
commented
4 years ago
[ ] issue cropped up in home.js
[ ] relevant to update delete etc too Can extract payload with: var payload = JSON.parse(window.atob(token.split('.')[1])); Can verify structure with: /^[a-zA-Z0-9-
]+?.[a-zA-Z0-9-
]+?.([a-zA-Z0-9-_]+)?$/;