Module: @moralisweb3/common-auth-utils
moralis-monorepo / @moralisweb3/common-auth-utils
Module: @moralisweb3/common-auth-utils
Table of contents
Type Aliases
- GetAddressesJSONRequest
- GetAddressesJSONResponse
- GetAddressesResponse
- RemoveBindJSONRequest
- RemoveBindJSONResponse
- RemoveBindResponse
- RequestBindJSONRequest
- RequestBindJSONResponse
- RequestBindResponse
- RequestChallengeAptosJSONRequest
- RequestChallengeAptosJSONResponse
- RequestChallengeAptosResponse
- RequestChallengeEvmJSONRequest
- RequestChallengeEvmJSONResponse
- RequestChallengeEvmResponse
- RequestChallengeSolanaJSONRequest
- RequestChallengeSolanaJSONResponse
- RequestChallengeSolanaResponse
- VerifyChallengeAptosJSONRequest
- VerifyChallengeAptosJSONResponse
- VerifyChallengeAptosResponse
- VerifyChallengeEvmJSONRequest
- VerifyChallengeEvmJSONResponse
- VerifyChallengeEvmResponse
- VerifyChallengeSolanaJSONRequest
- VerifyChallengeSolanaJSONResponse
- VerifyChallengeSolanaResponse
- VerifyRemoveBindJSONRequest
- VerifyRemoveBindJSONResponse
- VerifyRemoveBindResponse
- VerifyRequestBindJSONRequest
- VerifyRequestBindJSONResponse
- VerifyRequestBindResponse
Interfaces
- GetAddressesRequest
- GetAddressesResponseAdapter
- RemoveBindRequest
- RemoveBindResponseAdapter
- RequestBindRequest
- RequestBindResponseAdapter
- RequestChallengeAptosRequest
- RequestChallengeAptosResponseAdapter
- RequestChallengeEvmRequest
- RequestChallengeEvmResponseAdapter
- RequestChallengeSolanaRequest
- RequestChallengeSolanaResponseAdapter
- VerifyChallengeAptosRequest
- VerifyChallengeAptosResponseAdapter
- VerifyChallengeEvmRequest
- VerifyChallengeEvmResponseAdapter
- VerifyChallengeSolanaRequest
- VerifyChallengeSolanaResponseAdapter
- VerifyRemoveBindRequest
- VerifyRemoveBindResponseAdapter
- VerifyRequestBindRequest
- VerifyRequestBindResponseAdapter
Variables
- getAddressesOperation
- operations
- removeBindOperation
- requestBindOperation
- requestChallengeAptosOperation
- requestChallengeEvmOperation
- requestChallengeSolanaOperation
- verifyChallengeAptosOperation
- verifyChallengeEvmOperation
- verifyChallengeSolanaOperation
- verifyRemoveBindOperation
- verifyRequestBindOperation
Type Aliases
GetAddressesJSONRequest
Ƭ GetAddressesJSONRequest: ReturnType
<typeof serializeRequest
>
GetAddressesJSONResponse
Ƭ GetAddressesJSONResponse: any
[]
GetAddressesResponse
Ƭ GetAddressesResponse: ReturnType
<typeof deserializeResponse
>
RemoveBindJSONRequest
Ƭ RemoveBindJSONRequest: ReturnType
<typeof serializeRequest
>
RemoveBindJSONResponse
Ƭ RemoveBindJSONResponse: SuccessResponse
RemoveBindResponse
Ƭ RemoveBindResponse: ReturnType
<typeof deserializeResponse
>
RequestBindJSONRequest
Ƭ RequestBindJSONRequest: ReturnType
<typeof serializeRequest
>
RequestBindJSONResponse
Ƭ RequestBindJSONResponse: SuccessResponse
RequestBindResponse
Ƭ RequestBindResponse: ReturnType
<typeof deserializeResponse
>
RequestChallengeAptosJSONRequest
Ƭ RequestChallengeAptosJSONRequest: ReturnType
<typeof serializeRequest
>
RequestChallengeAptosJSONResponse
Ƭ RequestChallengeAptosJSONResponse: SuccessResponse
RequestChallengeAptosResponse
Ƭ RequestChallengeAptosResponse: ReturnType
<typeof deserializeResponse
>
RequestChallengeEvmJSONRequest
Ƭ RequestChallengeEvmJSONRequest: ReturnType
<typeof serializeRequest
>
RequestChallengeEvmJSONResponse
Ƭ RequestChallengeEvmJSONResponse: SuccessResponse
RequestChallengeEvmResponse
Ƭ RequestChallengeEvmResponse: ReturnType
<typeof deserializeResponse
>
RequestChallengeSolanaJSONRequest
Ƭ RequestChallengeSolanaJSONRequest: ReturnType
<typeof serializeRequest
>
RequestChallengeSolanaJSONResponse
Ƭ RequestChallengeSolanaJSONResponse: SuccessResponse
RequestChallengeSolanaResponse
Ƭ RequestChallengeSolanaResponse: ReturnType
<typeof deserializeResponse
>
VerifyChallengeAptosJSONRequest
Ƭ VerifyChallengeAptosJSONRequest: ReturnType
<typeof serializeRequest
>
VerifyChallengeAptosJSONResponse
Ƭ VerifyChallengeAptosJSONResponse: SuccessResponse
VerifyChallengeAptosResponse
Ƭ VerifyChallengeAptosResponse: ReturnType
<typeof deserializeResponse
>
VerifyChallengeEvmJSONRequest
Ƭ VerifyChallengeEvmJSONRequest: ReturnType
<typeof serializeRequest
>
VerifyChallengeEvmJSONResponse
Ƭ VerifyChallengeEvmJSONResponse: SuccessResponse
VerifyChallengeEvmResponse
Ƭ VerifyChallengeEvmResponse: ReturnType
<typeof deserializeResponse
>
VerifyChallengeSolanaJSONRequest
Ƭ VerifyChallengeSolanaJSONRequest: ReturnType
<typeof serializeRequest
>
VerifyChallengeSolanaJSONResponse
Ƭ VerifyChallengeSolanaJSONResponse: SuccessResponse
VerifyChallengeSolanaResponse
Ƭ VerifyChallengeSolanaResponse: ReturnType
<typeof deserializeResponse
>
VerifyRemoveBindJSONRequest
Ƭ VerifyRemoveBindJSONRequest: ReturnType
<typeof serializeRequest
>
VerifyRemoveBindJSONResponse
Ƭ VerifyRemoveBindJSONResponse: SuccessResponse
VerifyRemoveBindResponse
Ƭ VerifyRemoveBindResponse: ReturnType
<typeof deserializeResponse
>
VerifyRequestBindJSONRequest
Ƭ VerifyRequestBindJSONRequest: ReturnType
<typeof serializeRequest
>
VerifyRequestBindJSONResponse
Ƭ VerifyRequestBindJSONResponse: SuccessResponse
VerifyRequestBindResponse
Ƭ VerifyRequestBindResponse: ReturnType
<typeof deserializeResponse
>
Variables
getAddressesOperation
• Const
getAddressesOperation: Operation
<GetAddressesRequest
, GetAddressesJSONRequest
, any
[], any
[]>
operations
• Const
operations: (Operation
<RequestChallengeAptosRequest
, { address
: string
; domain
: string
= request.domain; expirationTime
: undefined
| DateInput
= request.expirationTime; network
: "mainnet"
| "testnet"
| "devnet"
; notBefore
: undefined
| DateInput
= request.notBefore; publicKey
: string
= request.publicKey; resources
: undefined
| string
[] = request.resources; statement
: undefined
| string
= request.statement; timeout
: number
= request.timeout; uri
: string
= request.uri }, { id
: string
; message
: string
; profileId
: string
}, { id
: string
; message
: string
; profileId
: string
}> | Operation
<RequestChallengeEvmRequest
, { address
: string
; chainId
: string
; domain
: string
= request.domain; expirationTime
: undefined
| DateInput
= request.expirationTime; notBefore
: undefined
| DateInput
= request.notBefore; resources
: undefined
| string
[] = request.resources; statement
: undefined
| string
= request.statement; timeout
: number
= request.timeout; uri
: string
= request.uri }, { id
: string
; message
: string
; profileId
: string
}, { id
: string
; message
: string
; profileId
: string
}> | Operation
<GetAddressesRequest
, GetAddressesRequest
, string
[], string
[]> | Operation
<RemoveBindRequest
, { address
: string
; blockchainType
: Camelize
<"evm"
| "solana"
| "aptos"
> = request.blockchainType; profileId
: string
= request.profileId; publicKey
: undefined
| string
= request.publicKey }, { message
: string
}, { message
: string
}> | Operation
<RequestBindRequest
, { addresses
: { address
: string
; blockchainType
: "evm"
| "solana"
= address.blockchainType }[] }, { messages
: string
[] }, { messages
: string
[] }> | Operation
<VerifyRemoveBindRequest
, { message
: string
= request.message; signature
: string
= request.signature }, { profileId
: string
}, { profileId
: string
}> | Operation
<VerifyRequestBindRequest
, { verifications
: Camelize
<{ message
: string
; signature
: string
}>[] = request.verifications }, { profileId
: string
}, { profileId
: string
}> | Operation
<RequestChallengeSolanaRequest
, { address
: string
; domain
: string
= request.domain; expirationTime
: undefined
| DateInput
= request.expirationTime; network
: "mainnet"
| "devnet"
; notBefore
: undefined
| DateInput
= request.notBefore; resources
: undefined
| string
[] = request.resources; statement
: undefined
| string
= request.statement; timeout
: number
= request.timeout; uri
: string
= request.uri }, { id
: string
; message
: string
; profileId
: string
}, { id
: string
; message
: string
; profileId
: string
}>)[]
removeBindOperation
• Const
removeBindOperation: Operation
<RemoveBindRequest
, RemoveBindJSONRequest
, RemoveBindResponse
, RemoveBindJSONResponse
>
requestBindOperation
• Const
requestBindOperation: Operation
<RequestBindRequest
, RequestBindJSONRequest
, RequestBindResponse
, RequestBindJSONResponse
>
requestChallengeAptosOperation
• Const
requestChallengeAptosOperation: Operation
<RequestChallengeAptosRequest
, RequestChallengeAptosJSONRequest
, RequestChallengeAptosResponse
, RequestChallengeAptosJSONResponse
>
The back channel challenge containing the id to store on the api and the message to be signed by the user
requestChallengeEvmOperation
• Const
requestChallengeEvmOperation: Operation
<RequestChallengeEvmRequest
, RequestChallengeEvmJSONRequest
, RequestChallengeEvmResponse
, RequestChallengeEvmJSONResponse
>
The back channel challenge containing the id to store on the api and the message to be signed by the user
requestChallengeSolanaOperation
• Const
requestChallengeSolanaOperation: Operation
<RequestChallengeSolanaRequest
, RequestChallengeSolanaJSONRequest
, RequestChallengeSolanaResponse
, RequestChallengeSolanaJSONResponse
>
The back channel challenge containing the id to store on the api and the message to be signed by the user
verifyChallengeAptosOperation
• Const
verifyChallengeAptosOperation: Operation
<VerifyChallengeAptosRequest
, VerifyChallengeAptosJSONRequest
, VerifyChallengeAptosResponse
, VerifyChallengeAptosJSONResponse
>
verifyChallengeEvmOperation
• Const
verifyChallengeEvmOperation: Operation
<VerifyChallengeEvmRequest
, VerifyChallengeEvmJSONRequest
, VerifyChallengeEvmResponse
, VerifyChallengeEvmJSONResponse
>
verifyChallengeSolanaOperation
• Const
verifyChallengeSolanaOperation: Operation
<VerifyChallengeSolanaRequest
, VerifyChallengeSolanaJSONRequest
, VerifyChallengeSolanaResponse
, VerifyChallengeSolanaJSONResponse
>
verifyRemoveBindOperation
• Const
verifyRemoveBindOperation: Operation
<VerifyRemoveBindRequest
, VerifyRemoveBindJSONRequest
, VerifyRemoveBindResponse
, VerifyRemoveBindJSONResponse
>
verifyRequestBindOperation
• Const
verifyRequestBindOperation: Operation
<VerifyRequestBindRequest
, VerifyRequestBindJSONRequest
, VerifyRequestBindResponse
, VerifyRequestBindJSONResponse
>