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

auth-code-pablo

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth-code-pablo - npm Package Compare versions

Comparing version 1.0.0 to 2.1.0

2

package.json
{
"name": "auth-code-pablo",
"version": "1.0.0",
"version": "2.1.0",
"description": "Simple authentication for API key validation",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -9,2 +9,3 @@ // src/index.js

apiKey = key;
console.clear();
console.log(`🔑 API Key set to: ${apiKey}`);

@@ -14,2 +15,3 @@ },

if (!apiKey) {
console.clear();
console.error('❌ API Key is missing. Please set your API Key using auth.key() before starting.');

@@ -19,2 +21,3 @@ return;

console.clear();
console.log('🚀 Starting API Key validation...');

@@ -27,2 +30,3 @@

if (active) {
console.clear();
console.log('✅ API Key is valid! Access granted.');

@@ -34,5 +38,7 @@ await new Promise(resolve => setTimeout(resolve, 5000)); // Optional delay

} else {
console.clear();
console.log(`❌ Access denied. Invalid API Key. Reason: ${reason}`);
}
} catch (error) {
console.clear();
console.error('⚠️ Error during API Key validation:', error.message);

@@ -39,0 +45,0 @@ }

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