@gtsc/api-auth-entity-storage-models
Advanced tools
Comparing version 0.0.3-next.65 to 0.0.3-next.66
@@ -13,3 +13,7 @@ /** | ||
token?: string; | ||
/** | ||
* The expiry time of the token. | ||
*/ | ||
expiry: number; | ||
}; | ||
} |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21443
124