useOTP
Function: useOTP()
useOTP():
object
Returns
object
submit
submit:
UseMutationResult
<undefined
|FetchResponse
<{parameters
: {cookie
:undefined
;header
:undefined
;path
:undefined
;query
:undefined
; };requestBody
: {content
: {application/json
: {address
:string
;hash
:string
;otp
:string
; };multipart/form-data
: {address
:string
;hash
:string
;otp
:string
; };text/plain
: {address
:string
;hash
:string
;otp
:string
; }; }; };responses
: {200
: {content
: {application/json
: {status
:"success"
; };multipart/form-data
: {status
:"success"
; };text/plain
: {status
:"success"
; }; };headers
: {}; };401
: {content
: {application/json
: {message
:unknown
;status
:"error"
; };multipart/form-data
: {message
:unknown
;status
:"error"
; };text/plain
: {message
:unknown
;status
:"error"
; }; };headers
: {}; };404
: {content
: {application/json
: {message
:unknown
;status
:"error"
; };multipart/form-data
: {message
:unknown
;status
:"error"
; };text/plain
: {message
:unknown
;status
:"error"
; }; };headers
: {}; };500
: {content
: {application/json
: {message
:unknown
;status
:"error"
; };multipart/form-data
: {message
:unknown
;status
:"error"
; };text/plain
: {message
:unknown
;status
:"error"
; }; };headers
: {}; }; }; }, {body
: {address
:string
;hash
:string
;otp
:string
; }; }, `${string}/${string}`>,Error
,SubmitOtpParams
,unknown
>
Mutation for submitting the OTP.
Defined in
Last updated