Skip to content

getUserConfirmation(requestPayload) as a convenience method to get the user confirmation (if there is any) #33

@gr2m

Description

@gr2m

Similar to #18, but for confirmations.

const confirmation = getUserConfirmation(requestPayload))
// { state, metadata })
if (confirmation) {
  // send text acknoledging the confirmation choice
  response.write(
    createTextEvent(
      `ok, confirmation.state}!`
    ).toString()
  );
  return response.end(createDoneEvent().toString());
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions