UNPKG

@othent/kms-unbundled

Version:

Arweave Oauth Othent wallets enabled Google Key Management Service.

12 lines (9 loc) 346 B
import { userDetails } from "../auth/userDetails"; /** * Get the owner (jwk.n) field of the users wallet. This function assumes (and requires) a user is logged in. * @returns The owner (jwk.n) field of the users wallet. */ export async function getActivePublicKey(): Promise<any> { const user = await userDetails(); return user.owner; }