action docker_post_users2_falogin { label: "Second factor authentication." description: "When a user has 2FA enabled, this is the second call to perform after\n`/v2/users/login` call.\n\nCreates and returns a bearer token in JWT format that you can use to authenticate with Docker Hub APIs.\n\nThe returned token is used in the HTTP Authorization header like `Authorization: Bearer {TOKEN}`.\n\nMost Docker Hub APIs require this token either to consume or to get detailed information. For example, to list images in a private repository.\n" provider: docker method: POST path: "/v2/users/2fa-login" encoding: json input: { type: "object" description: "Second factor user login details" required: ["code", "login_2fa_token"] properties: { code: { type: "string" description: "The Time-based One-Time Password of the Docker Hub account to authenticate with." } login_2fa_token: { type: "string" description: "The intermediate 2FA token returned from `/v2/users/login` API." } } } output: { type: "object" description: "successful user login response" properties: { token: { type: "string" description: "Created authentication token.\n\nThis token can be used in the HTTP Authorization header as a JWT to authenticate with the Docker Hub APIs.\n" } } } }