@code-202/jwt
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -41,2 +41,3 @@ import { Request, ApiRequest } from '@code-202/agent'; | ||
onAuthorizationError(responseStatus: any | null, responseTextStatus: any | null): void; | ||
onAccessDeniedError(responseStatus: any | null, responseTextStatus: any | null, data: any | null): void; | ||
get connected(): boolean; | ||
@@ -43,0 +44,0 @@ login(username: string, password: string, rememberMe?: boolean): Promise<any>; |
@@ -65,2 +65,4 @@ "use strict"; | ||
} | ||
onAccessDeniedError(responseStatus, responseTextStatus, data) { | ||
} | ||
get connected() { | ||
@@ -67,0 +69,0 @@ return this.token !== ''; |
{ | ||
"name": "@code-202/jwt", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"main": "build/index.js", | ||
@@ -29,3 +29,3 @@ "typings": "build/index", | ||
"dependencies": { | ||
"@code-202/agent": "^4.0.0", | ||
"@code-202/agent": "^4.3.0", | ||
"@code-202/serializer": "^1.0.0", | ||
@@ -32,0 +32,0 @@ "jose": "^4.12.2", |
@@ -102,2 +102,6 @@ import { Request, Response, ApiRequest } from '@code-202/agent' | ||
public onAccessDeniedError (responseStatus: any | null, responseTextStatus: any | null, data: any | null): void { | ||
console.error('access-denied') | ||
} | ||
public get connected (): boolean { | ||
@@ -104,0 +108,0 @@ return this.token !== '' |
115273
46
1660
Updated@code-202/agent@^4.3.0