@coveo/search-token-server

1.37.0 • Public • Published

Simple search token generation server

An Express server to generate Coveo search tokens.

Setup environment

Create the .env file at the root of this project using .env.example as starting point and make sure to replace all placeholder variables <...> by the proper information for your organization. For more involved configurations, you can modify the request parameters used in the middlewares/searchToken.ts file.

Installation

npm install

Usage

npm start

This will start a server listening on port 3000. The app will return a Coveo search token when you make a GET request to the /token path. Every other path will respond by a 404 Not Found error.

Documentation

Search Token Authentication

A search token is a special JSON web token typically used to temporarily grant the privilege to execute queries as a specific user and log usage analytics events. To understand search tokens and how they work in more detail, visit the Search Token Authentication page.

Readme

Keywords

none

Package Sidebar

Install

npm i @coveo/search-token-server

Weekly Downloads

70

Version

1.37.0

License

Apache-2.0

Unpacked Size

43.9 kB

Total Files

15

Last publish

Collaborators

  • ndescoteaux-coveo
  • sallain
  • aboissinot
  • mmitiche
  • jkatofsky
  • agong-coveo
  • pixhel
  • ndlr
  • npmcoveo
  • camarois
  • lcoolen
  • coveo-organization
  • coveoit
  • olamothe
  • sssayegh
  • ylakhdar