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;
}
