UNPKG

@swishapp/node

Version:

JS library to integrate Swish on a Node.js server.

2 lines (1 loc) 316 B
var o=Object.defineProperty;var r=(t,e)=>o(t,"name",{value:e,configurable:!0});class a{constructor(){this.storage=new Map}static{r(this,"MemoryStorage")}async storeToken(e,s){this.storage.set(e,s)}async loadToken(e){return this.storage.get(e)}async deleteToken(e){this.storage.delete(e)}}export{a as MemoryStorage};