> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anbyan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Login a customer with a passkey

> Verifies a passkey assertion against the one-time challenge and issues a customer portal session.



## OpenAPI

````yaml /openapi/tenant-customer-v1.openapi.yaml post /auth/passkeys/login
openapi: 3.1.0
info:
  title: Anbyan Customer Portal API
  version: 1.0.0
  description: >
    Customer portal API for password and passkey authentication, accounts,
    cards, statements, transactions, and other customer-owned resources.
servers:
  - url: https://{tenantDomain}/api/v1/customer
    description: Customer portal API on a tenant domain
    variables:
      tenantDomain:
        default: tenant.example.com
security:
  - bearerAuth: []
tags:
  - name: Customer Settings
  - name: Customer Auth
  - name: Customer Accounts
  - name: Customer Cards
  - name: Customer Statements
  - name: Customer Transactions
paths:
  /auth/passkeys/login:
    post:
      tags:
        - Customer Auth
      summary: Login a customer with a passkey
      description: >-
        Verifies a passkey assertion against the one-time challenge and issues a
        customer portal session.
      operationId: loginCustomerWithPasskey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasskeyLoginRequest'
      responses:
        '200':
          description: Authenticated customer session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerAuthResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
      security: []
components:
  schemas:
    PasskeyLoginRequest:
      type: object
      required:
        - challengeId
        - credential
      properties:
        challengeId:
          type: string
          minLength: 64
          maxLength: 64
        credential:
          $ref: '#/components/schemas/PasskeyCredential'
        rememberMe:
          type: boolean
          default: false
        deviceName:
          type:
            - string
            - 'null'
          maxLength: 64
        deviceId:
          type:
            - string
            - 'null'
          format: uuid
    CustomerAuthResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties: true
          properties:
            token:
              type: string
            user:
              $ref: '#/components/schemas/CustomerUser'
        message:
          type: string
    PasskeyCredential:
      type: object
      required:
        - id
        - rawId
        - type
        - response
      properties:
        id:
          type: string
        rawId:
          type: string
        type:
          type: string
          const: public-key
        response:
          type: object
          additionalProperties: true
    CustomerUser:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        displayName:
          type: string
        email:
          type: string
          format: email
        status:
          type: string
    ApiError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties: true
  responses:
    ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.