FACN3 / umm-el-fahem

authentication project
0 stars 0 forks source link

Max-Age can be set in jwt #42

Open MynahMarie opened 6 years ago

MynahMarie commented 6 years ago

Instead of having the max age visible as a seperate flag in the cookie header, it could be set inside the jwt itself as 1 of the elements of the jwt data object.

https://github.com/FACN3/umm-el-fahem/blob/master/src/handler.js#L76