simple-oauth2
Advanced tools
Comparing version 3.0.1 to 3.1.0
# Changelog | ||
## 3.1.0 | ||
### New features | ||
* [#277](https://github.com/lelylan/simple-oauth2/pull/277) Add support to parse expire at property on access tokens as UNIX timestamps | ||
## 3.0.1 | ||
@@ -4,0 +8,0 @@ ### Publishing changes |
@@ -20,3 +20,7 @@ 'use strict'; | ||
if (!isDate(token.expires_at)) { | ||
tokenProperties.expires_at = parseISO(token.expires_at); | ||
if (typeof token.expires_at === 'number') { | ||
tokenProperties.expires_at = new Date(token.expires_at * 1000); | ||
} else { | ||
tokenProperties.expires_at = parseISO(token.expires_at); | ||
} | ||
} | ||
@@ -23,0 +27,0 @@ } else if ('expires_in' in token) { |
{ | ||
"name": "simple-oauth2", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Node.js client for OAuth2", | ||
@@ -5,0 +5,0 @@ "author": "Andrea Reginato <andrea.reginato@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35063
341