UNPKG

@sovrano-io/auth-sdk

Version:

Sovrano wallet auth sdk for koinos dapps

13 lines 516 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.decodeParams = exports.encodeParams = void 0; const koilib_1 = require("koilib"); function encodeParams(data) { return koilib_1.utils.encodeBase64url(new TextEncoder().encode(JSON.stringify(data))); } exports.encodeParams = encodeParams; function decodeParams(data) { return JSON.parse(new TextDecoder().decode(koilib_1.utils.decodeBase64url(data))); } exports.decodeParams = decodeParams; //# sourceMappingURL=utils.js.map