Closed pkieltyka closed 8 years ago
We should also add a simple method when making a new token that lets the expiry of a token. I propose a package-level function in the jwtauth pacakge like..
func ExpValue(time time.Time) int64 {
// assuming we're to return a unix epoch time..
}
Let's check the conventional "exp" claim field for the value to check if the current time past the present time. If so, we should return a 401.