This is an example repo on how to handle (IIAS)[https://en.wikipedia.org/wiki/Inventory_Information_Approval_System] authorization requests with Unit's API.
- Run
npm install - Set environemnt variables:
PORT- the node js server portUNIT_BASE_API_URL- Unit's API endpointUNIT_API_TOKEN- Unit's API token (without the "Bearer" text)
- Run
npm run dev
Example:
PORT=4400 UNIT_BASE_API_URL=https://api.s.unit.sh UNIT_API_TOKEN=v2.public.eyJyb2xlIjoic3VwZXIi... npm run dev