🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@coveo/search-token-lambda

Package Overview
Dependencies
Maintainers
16
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coveo/search-token-lambda

An [Netlify Function](https://functions.netlify.com/) to generate [Coveo search tokens](https://docs.coveo.com/en/1346/).

latest
Source
npmnpm
Version
1.36.4
Version published
Weekly downloads
377
259.05%
Maintainers
16
Weekly downloads
 
Created
Source

Simple search token generation lamba function

An Netlify Function to generate Coveo search tokens.

Setup environment

Create the .env file at the root of this project using the .env.example file as starting point. 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 functions/token/generateToken.ts file.

Installation

npm install

Usage

npm start

This will start a server listening on port 9999. The app will return a Coveo search token when you make a GET request to the /.netlify/functions/token path. Every other path will respond with 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.

FAQs

Package last updated on 01 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts