@tef-novum/webview-bridge
Advanced tools
Comparing version 3.9.0 to 3.10.0
# CHANGELOG | ||
## v.3.10.0 - 2022-06-22 | ||
- Logout: added new method to end session in native app | ||
## v.3.9.0 - 2022-06-16 | ||
@@ -4,0 +8,0 @@ |
@@ -242,2 +242,7 @@ /** | ||
}; | ||
LOG_OUT: { | ||
type: 'LOG_OUT'; | ||
id: string; | ||
payload: void; | ||
}; | ||
}; | ||
@@ -244,0 +249,0 @@ export declare type NativeAppResponsePayload<Type extends keyof ResponsesFromNativeApp> = ResponsesFromNativeApp[Type]['payload']; |
@@ -15,1 +15,5 @@ /** | ||
export declare const onSessionRenewed: (handler: (newAccessToken: string) => void) => (() => void); | ||
/** | ||
* This method is used by webapp to request the native app to end the current session | ||
*/ | ||
export declare const logout: () => Promise<void>; |
{ | ||
"name": "@tef-novum/webview-bridge", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/webview-bridge-cjs.js", |
@@ -89,2 +89,3 @@ <p align="center"> | ||
- [onSessionRenewed](#onSessionRenewed) | ||
- [logout](#logout) | ||
- [getTopazToken](#getTopazToken) | ||
@@ -804,2 +805,10 @@ | ||
### logout | ||
Method that requests a user logout. | ||
```ts | ||
logout = () => Promise<void> | ||
``` | ||
### getTopazToken | ||
@@ -806,0 +815,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
243510
4564
832