Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-oauth2

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-oauth2 - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

4

CHANGELOG.md
# 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) {

2

package.json
{
"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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc