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

@gtsc/api-auth-entity-storage-service

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-auth-entity-storage-service - npm Package Compare versions

Comparing version 0.0.3-next.67 to 0.0.5-next.1

6

dist/types/utils/tokenHelper.d.ts

@@ -10,3 +10,2 @@ import type { IVaultConnector } from "@gtsc/vault-models";

* @param systemIdentity The system identity.
* @param systemPartitionId The system partition id.
* @param vaultConnector The vault connector.

@@ -18,3 +17,3 @@ * @param signingKeyName The signing key name.

*/
static createToken(systemIdentity: string | undefined, systemPartitionId: string | undefined, vaultConnector: IVaultConnector, signingKeyName: string, subject: string, ttlMinutes: number): Promise<{
static createToken(systemIdentity: string | undefined, vaultConnector: IVaultConnector, signingKeyName: string, subject: string, ttlMinutes: number): Promise<{
token: string;

@@ -26,3 +25,2 @@ expiry: number;

* @param systemIdentity The system identity.
* @param systemPartitionId The system partition id.
* @param vaultConnector The vault connector.

@@ -34,3 +32,3 @@ * @param signingKeyName The signing key name.

*/
static verify(systemIdentity: string | undefined, systemPartitionId: string | undefined, vaultConnector: IVaultConnector, signingKeyName: string, token: string | undefined): Promise<{
static verify(systemIdentity: string | undefined, vaultConnector: IVaultConnector, signingKeyName: string, token: string | undefined): Promise<{
header: IJwtHeader;

@@ -37,0 +35,0 @@ payload: IJwtPayload;

@@ -19,3 +19,3 @@ # Class: TokenHelper

> `static` **createToken**(`systemIdentity`, `systemPartitionId`, `vaultConnector`, `signingKeyName`, `subject`, `ttlMinutes`): `Promise`\<`object`\>
> `static` **createToken**(`systemIdentity`, `vaultConnector`, `signingKeyName`, `subject`, `ttlMinutes`): `Promise`\<`object`\>

@@ -30,6 +30,2 @@ Create a new token.

• **systemPartitionId**: `undefined` \| `string`
The system partition id.
• **vaultConnector**: `IVaultConnector`

@@ -69,3 +65,3 @@

> `static` **verify**(`systemIdentity`, `systemPartitionId`, `vaultConnector`, `signingKeyName`, `token`): `Promise`\<`object`\>
> `static` **verify**(`systemIdentity`, `vaultConnector`, `signingKeyName`, `token`): `Promise`\<`object`\>

@@ -80,6 +76,2 @@ Verify the token.

• **systemPartitionId**: `undefined` \| `string`
The system partition id.
• **vaultConnector**: `IVaultConnector`

@@ -86,0 +78,0 @@

{
"name": "@gtsc/api-auth-entity-storage-service",
"version": "0.0.3-next.67",
"version": "0.0.5-next.1",
"description": "Auth Entity Storage contract implementation and REST endpoint definitions",

@@ -17,5 +17,5 @@ "repository": {

"dependencies": {
"@gtsc/api-auth-entity-storage-models": "0.0.3-next.67",
"@gtsc/api-core": "0.0.3-next.67",
"@gtsc/api-models": "0.0.3-next.67",
"@gtsc/api-auth-entity-storage-models": "0.0.5-next.1",
"@gtsc/api-core": "0.0.5-next.1",
"@gtsc/api-models": "0.0.5-next.1",
"@gtsc/core": "next",

@@ -22,0 +22,0 @@ "@gtsc/crypto": "next",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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