(sessionID: string)
| 66 | } |
| 67 | |
| 68 | public async share(sessionID: string) { |
| 69 | let secret = await this.getSecret() |
| 70 | if (secret) return secret |
| 71 | secret = randomUUID() |
| 72 | |
| 73 | await this.ctx.storage.put("secret", secret) |
| 74 | await this.ctx.storage.put("sessionID", sessionID) |
| 75 | |
| 76 | return secret |
| 77 | } |
| 78 | |
| 79 | public async getData() { |
| 80 | const data = (await this.ctx.storage.list()) as Map<string, any> |
no test coverage detected