AddSecurityKeyState

Parameters


key optional SecurityKey

PropertyTypeRequiredNotes
key.idstring✔️Unique indentifier of the security key
key.nicknamestringHuman-readable nickname fof the security key

isError required boolean

@returns

true if an error occurred

@depreacted

use !isSuccess or !!error instead


error required null | AuthErrorPayload

Provides details about the error


isLoading required boolean

@returns

true when the action is executing, false when it finished its execution.


isSuccess required boolean

Returns true if the action is successful.