New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fonos/auth

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fonos/auth - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

8

dist/client/auth.d.ts

@@ -13,3 +13,3 @@ import { FonosService, ServiceOptions } from "@fonos/common";

* accessKeyId: "603693c0afaa1a080000000e",
* roleName: "ROLE",
* roleName: "ROLE"
* };

@@ -34,3 +34,4 @@ *

* @param {string} request.accessKeyId - Path to the function
* @param {string} request.roleName - Unique function name
* @param {string} request.expiration - Longevity of the token
* @param {string} request.roleName - Role assigned to the token
* @return {Promise<CreateTokenResponse>}

@@ -44,3 +45,4 @@ * @example

* accessKeyId: "603693c0afaa1a080000000e",
* roleName: "ROLE",
* roleName: "SERVICE",
* expirantion: '10m'
* };

@@ -47,0 +49,0 @@ *

@@ -39,3 +39,3 @@ "use strict";

* accessKeyId: "603693c0afaa1a080000000e",
* roleName: "ROLE",
* roleName: "ROLE"
* };

@@ -64,3 +64,4 @@ *

* @param {string} request.accessKeyId - Path to the function
* @param {string} request.roleName - Unique function name
* @param {string} request.expiration - Longevity of the token
* @param {string} request.roleName - Role assigned to the token
* @return {Promise<CreateTokenResponse>}

@@ -74,3 +75,4 @@ * @example

* accessKeyId: "603693c0afaa1a080000000e",
* roleName: "ROLE",
* roleName: "SERVICE",
* expirantion: '10m'
* };

@@ -86,2 +88,3 @@ *

req.setRoleName(request.roleName);
req.setExpiration(request.expiration);
const res = await super.getService().createToken().sendMessage(req);

@@ -88,0 +91,0 @@ return {

export interface CreateTokenRequest {
accessKeyId: string;
roleName?: string;
expiration?: "1s" | "1m" | "1d" | "30d" | "1y";
expiration?: string;
}

@@ -6,0 +6,0 @@ export interface CreateTokenResponse {

{
"name": "@fonos/auth",
"version": "0.2.2",
"version": "0.2.3",
"description": "Authentication Module",

@@ -59,3 +59,3 @@ "author": "Raul Sanchez <rsanchez@fonoster.com>",

},
"gitHead": "1d237d5c7164e2c00230864839e31766b7289066"
"gitHead": "e77db70bcc8bbbc1d6439bbbbad984aa21c948bb"
}
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