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

auth-server

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth-server - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

16

examples/basic.js

@@ -23,3 +23,3 @@ var oauth = require('auth-server'),

if (id === null) {
return callback(clients['dummy']);
return callback(clients.dummy);
} else {

@@ -29,10 +29,10 @@ return callback(clients[id]);

},
isValidRedirectUri: function(client,uri) { return true; }
isValidRedirectUri: function(client, uri) { return true; }
},
tokenService = {
generateToken: function() {
return uuid.v4();
generateToken: function() {
return uuid.v4();
},
generateDeviceCode: function() {
return generateToken();
return uuid.v4();
}

@@ -46,7 +46,7 @@ },

saveAccessToken: function(tokenData, callback) {
accessTokens[tokenData.accessToken] = tokenData;
accessTokens[tokenData.access_token] = tokenData;
return callback();
},
getAuthorizationCode: function(code, callback) {
return callback(authCodes[code]);
return callback(authCodes[code]);
},

@@ -64,3 +64,3 @@ getAccessToken: function(token, callback) {

expiresIn = 3600,
authServer = new oauth.AuthServer(clientService, tokenService, authorizationService, membershipService, expiresIn, supportedScopes);
authServer = new oauth(clientService, tokenService, authorizationService, membershipService, expiresIn, supportedScopes);

@@ -67,0 +67,0 @@ var authorize = function(req, res) {

@@ -7,3 +7,3 @@ var flatiron = require('flatiron'),

app = flatiron.app,
creature = require('./lib/resources/creature,js');
creature = require('./lib/resources/creature.js');

@@ -13,3 +13,3 @@ app.config.file({ file: path.join(__dirname, 'config', 'config.json') });

app.use(flatiron.plugins.resourceful, {
dir: path.join(__dirname, 'lib', 'resources'),
dir: path.join(__dirname, 'lib', 'resources'),
engine: 'memory'

@@ -16,0 +16,0 @@ });

@@ -6,3 +6,3 @@ {

"keywords": ["oauth", "auth server"],
"version": "2.2.1",
"version": "2.2.2",
"homepage": "https://github.com/wpreul/oauth",

@@ -9,0 +9,0 @@ "repository": {

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