@authgear/web
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -65,2 +65,12 @@ | ||
responseType?: string; | ||
/** | ||
* WeChat Redirect URI is needed when integrating WeChat login in react-native | ||
* The weChatRedirectURI will be called when user click the login with WeChat button | ||
*/ | ||
weChatRedirectURI?: string; | ||
/** | ||
* @internal | ||
* Platform is provided by the sdk | ||
*/ | ||
platform?: string; | ||
} | ||
@@ -125,3 +135,3 @@ | ||
*/ | ||
protected _request(method: "GET" | "POST" | "DELETE", path: string, options?: { | ||
protected _requestJSON(method: "GET" | "POST" | "DELETE", path: string, options?: { | ||
json?: unknown; | ||
@@ -133,2 +143,12 @@ query?: [string, string][]; | ||
*/ | ||
protected _request(method: "GET" | "POST" | "DELETE", path: string, options?: { | ||
headers?: { | ||
[name: string]: string; | ||
}; | ||
query?: [string, string][]; | ||
body?: string; | ||
}): Promise<any>; | ||
/** | ||
* @internal | ||
*/ | ||
protected _post(path: string, options?: { | ||
@@ -162,2 +182,6 @@ json?: unknown; | ||
_oidcRevocationRequest(refreshToken: string): Promise<void>; | ||
/** | ||
* @internal | ||
*/ | ||
_weChatAuthCallbackRequest(code: string, state: string, platform: string): Promise<void>; | ||
appSessionToken(refreshToken: string): Promise<AppSessionTokenResponse>; | ||
@@ -326,2 +350,14 @@ oauthChallenge(purpose: string): Promise<ChallengeResponse>; | ||
onSessionStateChange: <T extends BaseAPIClient>(container: BaseContainer<T>, reason: SessionStateChangeReason) => void; | ||
/** | ||
* This callback will be called when user click login with WeChat in | ||
* react-native. | ||
* | ||
* Developer should implement this function to use WeChat SDK to | ||
* obtain WeChat authentication code. After obtaining the code, developer | ||
* should call weChatAuthCallback with code and state to complete the | ||
* WeChat login. | ||
* | ||
* @public | ||
*/ | ||
sendWeChatAuthRequest(state: string): void; | ||
} | ||
@@ -489,2 +525,7 @@ | ||
uiLocales?: string[]; | ||
/** | ||
* WeChat Redirect URI is needed when integrating WeChat login in react-native | ||
* The weChatRedirectURI will be called when user click the login with WeChat button | ||
*/ | ||
weChatRedirectURI?: string; | ||
} | ||
@@ -562,4 +603,17 @@ | ||
/** | ||
* Auth UI setting options | ||
* | ||
* @public | ||
*/ | ||
export declare interface SettingOptions { | ||
/** | ||
* WeChat Redirect URI is needed when integrating WeChat login in react-native | ||
* The weChatRedirectURI will be called when user click the login with WeChat button | ||
*/ | ||
weChatRedirectURI?: string; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare interface StorageDriver { | ||
@@ -566,0 +620,0 @@ get(key: string): Promise<string | null>; |
{ | ||
"name": "@authgear/web", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"license": "Apache-2.0", | ||
@@ -13,4 +13,4 @@ "main": "dist/authgear-web.cjs.js", | ||
"devDependencies": { | ||
"@authgear/core": "0.5.0" | ||
"@authgear/core": "0.6.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
396537
11455
3