---
title: Kira Verify
description: Verification code validity windows in Kira Verify version 1.1.
url: https://pr-2-f08e5f6f5ceb.thally.app/kira-verify
---

# Kira Verify

Verification code validity windows in Kira Verify version 1.1.

# Kira Verify

Kira Verify calculates and checks verification code expiry metadata. It does not generate, deliver, compare, or consume secret codes.

## Default lifetime

The default verification code TTL is **600 seconds (10 minutes)**. Override `ttlSeconds` with an integer from 1 through 3600.

`createCodeWindow` returns `issuedAt`, `expiresAt`, and `ttlSeconds`. Timestamps use Unix milliseconds. Expiry is calculated as `issuedAt + ttlSeconds * 1000`. Issuance defaults to the current time and must be a nonnegative safe integer; expiry must also remain a safe integer.

## Exact expiry boundary

`isCodeWindowActive` returns true only when `issuedAt <= now < expiresAt`. A window is active at issuance and inactive at its exact expiry timestamp. The clock argument defaults to the current time.

For `issuedAt: 1000`, the default expiry is `601000`. The window is active at `600999` and inactive at `601000`.

This page describes version 1.1 behavior.