From a2c259588a494534dff3ebb75b388305a51dec57 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 30 Jun 2020 21:26:50 +0200 Subject: [PATCH] Mention utc timestamps --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b39117..254eff1 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,10 @@ The claims fields which can be validated. (see [validation](#validation)) #[derive(Debug, Serialize, Deserialize)] struct Claims { aud: String, // Optional. Audience - exp: usize, // Required (validate_exp defaults to true in validation). Expiration time - iat: usize, // Optional. Issued at + exp: usize, // Required (validate_exp defaults to true in validation). Expiration time (as UTC timestamp) + iat: usize, // Optional. Issued at (as UTC timestamp) iss: String, // Optional. Issuer - nbf: usize, // Optional. Not Before + nbf: usize, // Optional. Not Before (as UTC timestamp) sub: String, // Optional. Subject (whom token refers to) } ```