MCPcopy Create free account
hub / github.com/Web3Auth/Auth / jsonToBase64

Function jsonToBase64

src/utils/utils.ts:8–10  ·  view source on GitHub ↗
(json: T)

Source from the content-addressed store, hash-verified

6}
7
8export function jsonToBase64<T = Record<string, unknown>>(json: T): string {
9 return encodeBase64Url(JSON.stringify(json));
10}
11
12export const htmlToElement = <T extends Element>(html: string): T => {
13 const template = window.document.createElement("template");

Callers 2

manageMFAMethod · 0.90
authHandlerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected