diff --git a/FirebaseAdmin/FirebaseAdmin/Auth/FirebaseToken.cs b/FirebaseAdmin/FirebaseAdmin/Auth/FirebaseToken.cs index 101ea38c..2806b593 100644 --- a/FirebaseAdmin/FirebaseAdmin/Auth/FirebaseToken.cs +++ b/FirebaseAdmin/FirebaseAdmin/Auth/FirebaseToken.cs @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +using System; using System.Collections.Generic; using Newtonsoft.Json; @@ -56,12 +57,24 @@ internal FirebaseToken(Args args) /// public long ExpirationTimeSeconds { get; } + /// + /// Gets the expiration time claim that identifies the expiration time + /// on or after which the token MUST NOT be accepted for processing. + /// + public DateTimeOffset ExpiredAt => DateTimeOffset.FromUnixTimeSeconds(ExpirationTimeSeconds); + /// /// Gets the issued at claim that identifies the time (in seconds) at which the JWT was /// issued. /// public long IssuedAtTimeSeconds { get; } + /// + /// Gets the issued at claim that identifies the time at which the JWT was + /// issued. + /// + public DateTimeOffset IssuedAt => DateTimeOffset.FromUnixTimeSeconds(IssuedAtTimeSeconds); + /// /// Gets the User ID of the user to which this ID token belongs. This is same as /// .