Updated returns the "updated" record field value.
()
| 108 | |
| 109 | // Updated returns the "updated" record field value. |
| 110 | func (m *OTP) Updated() types.DateTime { |
| 111 | return m.GetDateTime("updated") |
| 112 | } |
| 113 | |
| 114 | // HasExpired checks if the otp is expired, aka. whether it has been |
| 115 | // more than maxElapsed time since its creation. |