@othent/kms-unbundled
Version:
Arweave Oauth Othent wallets enabled Google Key Management Service.
12 lines (9 loc) • 355 B
text/typescript
import { userDetails } from "../auth/userDetails";
/**
* Get the active wallet address of the users wallet. This function assumes (and requires) a user is logged in.
* @returns The active wallet address of the users wallet.
*/
export async function getActiveKey(): Promise<string> {
const user = await userDetails();
return user.walletAddress;
}