(type: "webdav" | "s3")
| 44 | * Get the secret key for a backend type. |
| 45 | */ |
| 46 | export function getSecretKeyForBackend(type: "webdav" | "s3"): string { |
| 47 | const keys = { |
| 48 | webdav: "sync_webdav_password", |
| 49 | s3: "sync_s3_secret_key", |
| 50 | }; |
| 51 | return keys[type]; |
| 52 | } |