Comparing version 0.6.0-alpha-4 to 0.6.0-alpha-5
@@ -135,3 +135,3 @@ 'use strict'; | ||
} else { | ||
payload.exp = Date.now() / 1000 + 600; | ||
payload.exp = Math.floor(Date.now() / 1000) + 600; | ||
} | ||
@@ -138,0 +138,0 @@ return (0, _JWT.createJWT)(this.settings, _extends({}, payload, { type: 'shareReq' })); |
@@ -52,3 +52,3 @@ 'use strict'; | ||
var signingInput = [ENCODED_HEADER, encodeSection(_extends({ iss: address, iat: Date.now() / 1000 }, payload))].join('.'); | ||
var signingInput = [ENCODED_HEADER, encodeSection(_extends({ iss: address, iat: Math.floor(Date.now() / 1000) }, payload))].join('.'); | ||
@@ -55,0 +55,0 @@ return new Promise(function (resolve, reject) { |
{ | ||
"name": "uport", | ||
"version": "0.6.0-alpha-4", | ||
"version": "0.6.0-alpha-5", | ||
"description": "Library for interacting with uport profiles and attestations", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -93,3 +93,3 @@ import { createJWT, verifyJWT } from './JWT' | ||
} else { | ||
payload.exp = Date.now() / 1000 + 600 | ||
payload.exp = Math.floor(Date.now() / 1000) + 600 | ||
} | ||
@@ -96,0 +96,0 @@ return createJWT(this.settings, {...payload, type: 'shareReq'}) |
@@ -33,3 +33,3 @@ import { TokenVerifier, decodeToken } from 'jsontokens' | ||
const signingInput = [ENCODED_HEADER, | ||
encodeSection({iss: address, iat: ( Date.now() / 1000), ...payload }) | ||
encodeSection({iss: address, iat: Math.floor(Date.now() / 1000), ...payload }) | ||
].join('.') | ||
@@ -110,2 +110,2 @@ | ||
export default { createJWT, verifyJWT } | ||
export default { createJWT, verifyJWT } |
Sorry, the diff of this file is too big to display
1264420
37762