@ambassadorai/waitlist-webview

1.0.3 • Public • Published

Waitlist webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either token or signedRequest depending on the environment.

Props:

  • apiUrl: the URL of the webview-facing waitlist API.
  • ioUrl: the URL of the contact-facing waitlist WebSocket server.
  • token: a JWT token from the chat app.
  • signedRequest: a signed request from a Messenger webview.

For dev/demo purposes, can be run in a standalone environment with npm run watch. Just set API_URL and IO_URL as environment variables, and supply a pre-generated token in CHAT_TOKEN. You can copy the token from any API request from the chat app. Environment variables can be set in an .env file.

Readme

Keywords

none

Package Sidebar

Install

npm i @ambassadorai/waitlist-webview

Weekly Downloads

1

Version

1.0.3

License

UNLICENSED

Unpacked Size

206 kB

Total Files

4

Last publish

Collaborators

  • marcus.ambassador