---
descriptions:
  authentication_challenge:
    self: 'The [Authentication Challenge](/reference/mfa/challenge) object.'
    object: Distinguishes the Authentication Challenge object.
    id: The unique ID of the Authentication Challenge.
    created_at: The timestamp when the Challenge was created.
    updated_at: The timestamp when the Challenge was last updated.
    expires_at: >-
      The timestamp when the Challenge will expire. Does not apply to totp
      factors.
    authentication_factor_id: The unique ID of the Authentication Factor the Challenge belongs to.
reference:
  curl:
    - url: /reference/mfa/challenge
      key: authentication_challenge
      id: authentication_challenge
      title: authentication_challenge
      properties:
        - key: object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: string
          description: (authentication_challenge.id)
        - key: created_at
          type: string
          description: (authentication_challenge.created_at)
        - key: updated_at
          type: string
          description: (authentication_challenge.updated_at)
        - key: expires_at
          type: string
          description: (authentication_challenge.expires_at)
        - key: authentication_factor_id
          type: string
          description: (authentication_challenge.authentication_factor_id)
  dotnet:
    - url: /reference/mfa/challenge
      key: Challenge
      id: authentication_challenge
      title: class Challenge
      properties:
        - key: Object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: Id
          type: string
          description: (authentication_challenge.id)
        - key: CreatedAt
          type: string
          description: (authentication_challenge.created_at)
        - key: UpdatedAt
          type: string
          description: (authentication_challenge.updated_at)
        - key: ExpiresAt
          type: string
          description: (authentication_challenge.expires_at)
        - key: FactorId
          type: string
          description: (authentication_challenge.authentication_factor_id)
  ruby:
    - url: /reference/mfa/challenge
      key: Challenge
      id: authentication_challenge
      title: class Challenge
      properties:
        - key: object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: String
          description: (authentication_challenge.id)
        - key: created_at
          type: String
          description: (authentication_challenge.created_at)
        - key: updated_at
          type: String
          description: (authentication_challenge.updated_at)
        - key: expires_at
          type: String
          description: (authentication_challenge.expires_at)
        - key: authentication_factor_id
          type: String
          description: (authentication_challenge.authentication_factor_id)
  python:
    - url: /reference/mfa/challenge
      key: AuthenticationChallenge
      id: authentication_challenge
      title: AuthenticationChallenge
      properties:
        - key: object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: str
          description: (authentication_challenge.id)
        - key: created_at
          type: str
          description: (authentication_challenge.created_at)
        - key: updated_at
          type: str
          description: (authentication_challenge.updated_at)
        - key: expires_at
          type: str
          description: (authentication_challenge.expires_at)
        - key: authentication_factor_id
          type: str
          description: (authentication_challenge.authentication_factor_id)
  js:
    - url: /reference/mfa/challenge
      key: Challenge
      id: authentication_challenge
      title: interface Challenge
      properties:
        - key: object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: string
          description: (authentication_challenge.id)
        - key: createdAt
          type: string
          description: (authentication_challenge.created_at)
        - key: updatedAt
          type: string
          description: (authentication_challenge.updated_at)
        - key: expiresAt
          type: string
          description: (authentication_challenge.expires_at)
        - key: authenticationFactorId
          type: string
          description: (authentication_challenge.authentication_factor_id)
  php:
    - url: /reference/mfa/challenge
      key: AuthenticationChallenge
      id: authentication_challenge
      title: WorkOS\Resource\AuthenticationChallenge
      properties:
        - key: object
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: string
          description: (authentication_challenge.id)
        - key: created_at
          type: string
          description: (authentication_challenge.created_at)
        - key: updated_at
          type: string
          description: (authentication_challenge.updated_at)
        - key: expires_at
          type: string
          description: (authentication_challenge.expires_at)
        - key: authentication_factor_id
          type: string
          description: (authentication_challenge.authentication_factor_id)
  java:
    - url: /reference/mfa/challenge
      key: Challenge
      id: authentication_challenge
      title: class Challenge
      properties:
        - key: obj
          type: '"authentication_challenge"'
          description: (authentication_challenge.object)
        - key: id
          type: String
          description: (authentication_challenge.id)
        - key: createdAt
          type: String
          description: (authentication_challenge.created_at)
        - key: updatedAt
          type: String
          description: (authentication_challenge.updated_at)
        - key: expiresAt
          type: String
          description: (authentication_challenge.expires_at)
        - key: authenticationFactorId
          type: String
          description: (authentication_challenge.authentication_factor_id)
  go:
    - url: /reference/mfa/challenge
      key: Challenge
      id: authentication_challenge
      title: mfa.Challenge
      properties:
        - key: ID
          type: string
          description: (authentication_challenge.id)
        - key: CreatedAt
          type: string
          description: (authentication_challenge.created_at)
        - key: UpdatedAt
          type: string
          description: (authentication_challenge.updated_at)
        - key: ExpiresAt
          type: string
          description: (authentication_challenge.expires_at)
        - key: FactorID
          type: string
          description: (authentication_challenge.authentication_factor_id)
originalPath: .tmp-workos-clone/packages/docs/content/reference/mfa/challenge/index.mdx
---

# Authentication Challenge

An object representing a Challenge of an Authentication Factor.

<CodeBlock
  title="Example Authentication Challenge"
  file="authentication-challenge"
  referenceId="authentication_challenge"
/>
