Skip to content

Latest commit

 

History

History
91 lines (50 loc) · 2.29 KB

AuthDataValidatorOptions.md

File metadata and controls

91 lines (50 loc) · 2.29 KB

@telegram-auth/server / AuthDataValidatorOptions

Interface: AuthDataValidatorOptions

Table of contents

Properties

Properties

botToken

Optional botToken: string

The bot token to be used for validating the data.

If you don't pass this here, you'll need to set it later using setBotToken().

Defined in

AuthDataValidator.ts:10


subtleCrypto

Optional subtleCrypto: SubtleCrypto

The crypto object to be used for validating the data

See

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto

Defined in

AuthDataValidator.ts:17


encoder

Optional encoder: TextEncoder

The encoder to be used for encoding the data

Defined in

AuthDataValidator.ts:22


inValidateDataAfter

Optional inValidateDataAfter: number

The time in seconds after which the data should be considered invalid

Default

86400 (1 day)

Defined in

AuthDataValidator.ts:29


throwIfEmptyData

Optional throwIfEmptyData: boolean

Whether to throw an error if the data is empty/incomplete

Default

true

Defined in

AuthDataValidator.ts:36