getActivePublicKey()
Othent JS SDK getActivePublicKey() function
Returns the public key (jwk.n
field) associated with the active (authenticated) user account.
API
return Promise<B64UrlString | "">
return Promise<B64UrlString | "">
A Promise
with the owner public key (jwk.n
field, as a Base64 URL-encoded string
) of the active (authenticated) user, or an empty string
if the user is not authenticated.
Example usage
Last updated