@telegram-auth/server / AuthDataValidatorOptions
• 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()
.
• Optional
subtleCrypto: SubtleCrypto
The crypto object to be used for validating the data
See
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto
• Optional
encoder: TextEncoder
The encoder to be used for encoding the data
• Optional
inValidateDataAfter: number
The time in seconds after which the data should be considered invalid
Default
86400 (1 day)
• Optional
throwIfEmptyData: boolean
Whether to throw an error if the data is empty/incomplete
Default
true