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

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

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-models - npm Package Compare versions

Comparing version 0.0.3-next.65 to 0.0.3-next.66

4

dist/types/models/api/ILoginResponse.d.ts

@@ -13,3 +13,7 @@ /**

token?: string;
/**
* The expiry time of the token.
*/
expiry: number;
};
}

2

dist/types/models/api/ILogoutRequest.d.ts

@@ -8,3 +8,3 @@ /**

*/
query: {
query?: {
/**

@@ -11,0 +11,0 @@ * The token to logout, if it uses a mechanism with public access.

@@ -8,3 +8,3 @@ /**

*/
query: {
query?: {
/**

@@ -11,0 +11,0 @@ * The token to refresh, if it uses a mechanism with public access.

@@ -13,3 +13,7 @@ /**

token?: string;
/**
* The expiry time of the token.
*/
expiry: number;
};
}

@@ -13,3 +13,6 @@ import type { IService, IServiceRequestContext } from "@gtsc/services";

*/
login(email: string, password: string, requestContext?: IServiceRequestContext): Promise<string | undefined>;
login(email: string, password: string, requestContext?: IServiceRequestContext): Promise<{
token?: string;
expiry: number;
}>;
/**

@@ -28,3 +31,6 @@ * Logout the current user.

*/
refresh(token?: string, requestContext?: IServiceRequestContext): Promise<string | undefined>;
refresh(token?: string, requestContext?: IServiceRequestContext): Promise<{
token?: string;
expiry: number;
}>;
}

@@ -105,3 +105,3 @@ # Interface: IAuthentication

> **login**(`email`, `password`, `requestContext`?): `Promise`\<`undefined` \| `string`\>
> **login**(`email`, `password`, `requestContext`?): `Promise`\<`object`\>

@@ -126,6 +126,14 @@ Perform a login for the user.

`Promise`\<`undefined` \| `string`\>
`Promise`\<`object`\>
The authentication token for the user, if it uses a mechanism with public access.
##### token?
> `optional` **token**: `string`
##### expiry
> **expiry**: `number`
***

@@ -159,3 +167,3 @@

> **refresh**(`token`?, `requestContext`?): `Promise`\<`undefined` \| `string`\>
> **refresh**(`token`?, `requestContext`?): `Promise`\<`object`\>

@@ -176,4 +184,12 @@ Refresh the token.

`Promise`\<`undefined` \| `string`\>
`Promise`\<`object`\>
The refreshed token, if it uses a mechanism with public access.
##### token?
> `optional` **token**: `string`
##### expiry
> **expiry**: `number`

@@ -18,1 +18,7 @@ # Interface: ILoginResponse

The access token, if it uses a mechanism with public access.
#### expiry
> **expiry**: `number`
The expiry time of the token.

@@ -7,5 +7,5 @@ # Interface: ILogoutRequest

### query
### query?
> **query**: `object`
> `optional` **query**: `object`

@@ -12,0 +12,0 @@ The logout token details.

@@ -7,5 +7,5 @@ # Interface: IRefreshTokenRequest

### query
### query?
> **query**: `object`
> `optional` **query**: `object`

@@ -12,0 +12,0 @@ The refresh token details.

@@ -18,1 +18,7 @@ # Interface: IRefreshTokenResponse

The refreshed token, if it uses a mechanism with public access.
#### expiry
> **expiry**: `number`
The expiry time of the token.
{
"name": "@gtsc/api-auth-entity-storage-models",
"version": "0.0.3-next.65",
"version": "0.0.3-next.66",
"description": "Models which define the structure of the Auth Entity Storage contracts.",

@@ -5,0 +5,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