@authgear/web
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -178,2 +178,6 @@ | ||
*/ | ||
_setupBiometricRequest(req: _SetupBiometricRequest): Promise<void>; | ||
/** | ||
* @internal | ||
*/ | ||
_oidcUserInfoRequest(accessToken?: string): Promise<UserInfo>; | ||
@@ -381,8 +385,11 @@ /** | ||
setAnonymousKeyID(namespace: string, kid: string): Promise<void>; | ||
setBiometricKeyID(namespace: string, kid: string): Promise<void>; | ||
getRefreshToken(namespace: string): Promise<string | null>; | ||
getOIDCCodeVerifier(namespace: string): Promise<string | null>; | ||
getAnonymousKeyID(namespace: string): Promise<string | null>; | ||
getBiometricKeyID(namespace: string): Promise<string | null>; | ||
delRefreshToken(namespace: string): Promise<void>; | ||
delOIDCCodeVerifier(namespace: string): Promise<void>; | ||
delAnonymousKeyID(namespace: string): Promise<void>; | ||
delBiometricKeyID(namespace: string): Promise<void>; | ||
} | ||
@@ -439,8 +446,11 @@ | ||
setAnonymousKeyID(namespace: string, kid: string): Promise<void>; | ||
setBiometricKeyID(namespace: string, kid: string): Promise<void>; | ||
getRefreshToken(namespace: string): Promise<string | null>; | ||
getOIDCCodeVerifier(namespace: string): Promise<string | null>; | ||
getAnonymousKeyID(namespace: string): Promise<string | null>; | ||
getBiometricKeyID(namespace: string): Promise<string | null>; | ||
delRefreshToken(namespace: string): Promise<void>; | ||
delOIDCCodeVerifier(namespace: string): Promise<void>; | ||
delAnonymousKeyID(namespace: string): Promise<void>; | ||
delBiometricKeyID(namespace: string): Promise<void>; | ||
} | ||
@@ -467,3 +477,3 @@ | ||
*/ | ||
export declare interface OAuthError { | ||
export declare class OAuthError extends Error { | ||
state?: string; | ||
@@ -473,2 +483,8 @@ error: string; | ||
error_uri?: string; | ||
constructor({ state, error, error_description, error_uri, }: { | ||
state?: string; | ||
error: string; | ||
error_description?: string; | ||
error_uri?: string; | ||
}); | ||
} | ||
@@ -491,3 +507,3 @@ | ||
export declare interface _OIDCTokenRequest { | ||
grant_type: "authorization_code" | "refresh_token" | "urn:authgear:params:oauth:grant-type:anonymous-request"; | ||
grant_type: "authorization_code" | "refresh_token" | "urn:authgear:params:oauth:grant-type:anonymous-request" | "urn:authgear:params:oauth:grant-type:biometric-request"; | ||
client_id: string; | ||
@@ -620,2 +636,11 @@ redirect_uri?: string; | ||
/** | ||
* @internal | ||
*/ | ||
export declare interface _SetupBiometricRequest { | ||
access_token: string; | ||
client_id: string; | ||
jwt: string; | ||
} | ||
/** | ||
* @public | ||
@@ -707,4 +732,12 @@ */ | ||
/** | ||
* Configure this container with connection information. | ||
* configure() configures the container with the client ID and the endpoint. | ||
* It also does local IO to retrieve the refresh token. | ||
* It finally does network IO to refresh the access token. | ||
* | ||
* Therefore, it is possible that configure() could fail for many reasons. | ||
* If your application is offline first, be prepared for handling errors. | ||
* | ||
* configure() can be called more than once if it failed. | ||
* Otherwise, it is NOT recommended to call it more than once. | ||
* | ||
* @public | ||
@@ -711,0 +744,0 @@ */ |
{ | ||
"name": "@authgear/web", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"license": "Apache-2.0", | ||
@@ -13,4 +13,4 @@ "main": "dist/authgear-web.cjs.js", | ||
"devDependencies": { | ||
"@authgear/core": "0.6.2" | ||
"@authgear/core": "0.7.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
407415
11764