mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
this is because session doesn't care about the config it receives anymore and just forwards them to libsession
11 lines
353 B
TypeScript
11 lines
353 B
TypeScript
import * as wrappers from 'libsodium-wrappers-sumo';
|
|
|
|
type LibSodiumWrappers = typeof wrappers;
|
|
|
|
export async function getSodiumNode() {
|
|
// don't ask me why, but when called from node we have to do this as the types are incorrect?!
|
|
const anyWrappers = wrappers as any;
|
|
await anyWrappers.ready;
|
|
return anyWrappers.default as LibSodiumWrappers;
|
|
}
|