(id: string)
| 64 | } |
| 65 | |
| 66 | find(id: string): Promise<AdapterPayload | void | undefined> { |
| 67 | if (storage.has(this.key(id))) { |
| 68 | return Promise.resolve(storage.get(this.key(id)) as AdapterPayload); |
| 69 | } |
| 70 | return Promise.resolve(undefined); |
| 71 | } |
| 72 | |
| 73 | findByUserCode(userCode: string) { |
| 74 | const id = storage.get(userCodeKeyFor(userCode)) as string; |