@roelandtsw/cookie-master
The cookie master API is created to clear cookies in electron app (node.js layer) It is a capacitor plugin
Install
npm install @roelandtsw/cookie-master
npx cap sync
Example
let oMessage = await CapacitorCustomPlatform.plugins.CookieMaster.clearCookies();
console.log(oMessage);
let oMessage = await CapacitorCustomPlatform.plugins.CookieMaster.getCookies();
console.log(oMessage);
API
getCookies()
getCookies() => Promise<Cookies>
Return all cookies from the node.js layer (electron)
Returns: Promise<Cookies>
Since: 1.0.0
clearCookies()
clearCookies() => Promise<Cookies>
Clear all cookies on the node.js layer (electron)
Returns: Promise<Cookies>
Since: 1.0.0
Interfaces
Cookies
Prop | Type | Description | Since |
---|---|---|---|
d |
any |
Generic message interface | 1.0.0 |