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

# Kira Verify

Verification code validity windows in Kira Verify version 1.0.

# 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 **300 seconds (5 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 `301000`. The window is active at `300999` and inactive at `301000`.

This page describes version 1.0 behavior.