firebase-auth-cloudflare-workers
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -71,3 +71,3 @@ "use strict"; | ||
} | ||
if (currentTimestamp <= payload.iat) { | ||
if (currentTimestamp < payload.iat) { | ||
throw new errors_1.JwtError(errors_1.JwtErrorCode.INVALID_ARGUMENT, `Incorrect "iat" claim must be a older than "${currentTimestamp}" (iat: "${payload.iat}")`); | ||
@@ -74,0 +74,0 @@ } |
@@ -69,3 +69,3 @@ import { decodeBase64Url } from './base64'; | ||
} | ||
if (currentTimestamp <= payload.iat) { | ||
if (currentTimestamp < payload.iat) { | ||
throw new JwtError(JwtErrorCode.INVALID_ARGUMENT, `Incorrect "iat" claim must be a older than "${currentTimestamp}" (iat: "${payload.iat}")`); | ||
@@ -72,0 +72,0 @@ } |
{ | ||
"name": "firebase-auth-cloudflare-workers", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Zero-dependencies firebase auth library for Cloudflare Workers.", | ||
@@ -5,0 +5,0 @@ "author": "codehex", |
@@ -96,2 +96,10 @@ # firebase-auth-cloudflare-workers | ||
## Install | ||
You can install from npm registry. | ||
``` | ||
$ npm i firebase-auth-cloudflare-workers | ||
``` | ||
## Docs | ||
@@ -98,0 +106,0 @@ |
93403
205