Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / OtpResponseOptions

Interface: OtpResponseOptions<T>

Type Parameters

T

T

Properties

fallbackError

fallbackError: string


operation

operation: string


schema?

optional schema?: Schema<T>

Checks the answer's data. Leave it out to read an answer of this package's own otpSend / otpVerify routes: their client already checked it on the server with OtpSendResultSchema / OtpVerifyResultSchema, and a schema here would only ship Zod to every shopper's browser. Pass one for an endpoint of your own.