Skip to main content

Function: isReplyInbox()

isReplyInbox(reply, prefixes): boolean

Defined in: packages/contracts/src/permissions/replies.ts:54

Whether a request's reply subject sits in one of the given inboxes.

Parameters​

reply​

string | undefined

The reply subject the request arrived with, if any.

prefixes​

readonly string[]

From replyPrefixes.

Returns​

boolean

false for a missing reply subject, and for any subject outside the prefixes.