IdentityAttributesManager
Defined in: react/src/auth/identity-attributes-manager.ts:32
Requests and decodes signed identity attributes for an authenticated Internet Identity session.
Await authentication.prepareClient() once during startup (the useAuth
hook already does) so that request can open the identity provider
window synchronously from a click handler.
Example
Section titled “Example”const attributes = new IdentityAttributesManager(authentication)const result = await attributes.request({ keys: ["name"], nonce: () => fetchNonceFromCanister(),})Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IdentityAttributesManager(
authentication):IdentityAttributesManager
Defined in: react/src/auth/identity-attributes-manager.ts:33
Parameters
Section titled “Parameters”authentication
Section titled “authentication”Returns
Section titled “Returns”IdentityAttributesManager
Properties
Section titled “Properties”authentication
Section titled “authentication”
readonlyauthentication:AuthenticationManager
Defined in: react/src/auth/identity-attributes-manager.ts:33
Methods
Section titled “Methods”request()
Section titled “request()”request(
__namedParameters):Promise<IdentityAttributeResult>
Defined in: react/src/auth/identity-attributes-manager.ts:35
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”RequestIdentityAttributesParameters
Returns
Section titled “Returns”Promise<IdentityAttributeResult>
requestOpenId()
Section titled “requestOpenId()”requestOpenId(
__namedParameters):Promise<IdentityAttributeResult>
Defined in: react/src/auth/identity-attributes-manager.ts:103
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”RequestOpenIdIdentityAttributesParameters
Returns
Section titled “Returns”Promise<IdentityAttributeResult>