Skip to content

Documentation / react-auth / UseSessionSignersInterface

Interface: UseSessionSignersInterface ​

Hook to add session signers to a user wallet.

Properties ​

addSessionSigners ​

addSessionSigners: (__namedParameters) => Promise<Object>

Headlessly grants access of the user wallet to a specified key quorum.

Parameters ​

• __namedParameters: Object

• __namedParameters.address: string

• __namedParameters.signers: SessionSignerInput

Returns ​

Promise<Object>

Promise that resolves if adding signers was successful, and errors otherwise

user ​

user: User


removeSessionSigners ​

removeSessionSigners: (address) => Promise<Object>

Removes all session keys from a user wallet.

Parameters ​

• address: Object

address of the wallet to revoke access for

• address.address: string

Returns ​

Promise<Object>

Promise that resolves if the revocation was successful, and errors otherwise

user ​

user: User