Skip to content

ConfirmDeviceResponse

Source code in docs_src/capo_cognito_identity_provider/types/confirm_device_response.py
class ConfirmDeviceResponse(TypedDict, closed=True):
    user_confirmation_necessary: (
        "capo_cognito_identity_provider.types.boolean_type.BooleanType"
    )
    """<p>When <code>true</code>, your user must confirm that they want to remember the device. Prompt the user for an answer.</p> <p>When <code>false</code>, immediately sets the device as remembered and eligible for device authentication.</p> <p>You can configure your user pool to always remember devices, in which case this response is <code>false</code>, or to allow users to opt in, in which case this response is <code>true</code>. Configure this option under <i>Device tracking</i> in the <i>Sign-in</i> menu of your user pool.</p>"""

user_confirmation_necessary instance-attribute

user_confirmation_necessary: BooleanType

When true, your user must confirm that they want to remember the device. Prompt the user for an answer.

When false, immediately sets the device as remembered and eligible for device authentication.

You can configure your user pool to always remember devices, in which case this response is false, or to allow users to opt in, in which case this response is true. Configure this option under Device tracking in the Sign-in menu of your user pool.