()
| 68 | } |
| 69 | }, |
| 70 | delete(): boolean { |
| 71 | // sync IO: called from sync context (SecureStorage interface) |
| 72 | const { storagePath } = getStoragePath() |
| 73 | try { |
| 74 | getFsImplementation().unlinkSync(storagePath) |
| 75 | return true |
| 76 | } catch (e: unknown) { |
| 77 | const code = getErrnoCode(e) |
| 78 | if (code === 'ENOENT') { |
| 79 | return true |
| 80 | } |
| 81 | return false |
| 82 | } |
| 83 | }, |
| 84 | } satisfies SecureStorage |
| 85 |
nothing calls this directly
no test coverage detected