KeyExpired checks if a key has expired, if the value of user.SessionState.Expires is 0, it will be ignored.
(expires int64)
| 106 | |
| 107 | // KeyExpired checks if a key has expired, if the value of user.SessionState.Expires is 0, it will be ignored. |
| 108 | func KeyExpired(expires int64) bool { |
| 109 | if expires >= 1 { |
| 110 | return time.Now().After(time.Unix(expires, 0)) |
| 111 | } |
| 112 | |
| 113 | return false |
| 114 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…