UNPKG

@othent/kms-unbundled

Version:

Arweave Oauth Othent wallets enabled Google Key Management Service.

11 lines 414 B
import { getTokenSilently, getAuth0Client } from "./auth0"; export async function encodeToken(data) { const auth0 = await getAuth0Client(); const authParams = { transaction_input: JSON.stringify({ othentFunction: "KMS", data }), }; const accessToken = await getTokenSilently(auth0, authParams); const JWT = accessToken.id_token; return JWT; } //# sourceMappingURL=encodeToken.js.map