Skip to main content

Install

Basic usage

Get your publishable key from app.imarobot.ai/settings/api-keys.

Scope enforcement

The middleware validates the token but does not enforce scopes — that’s your responsibility:

Error responses

The middleware returns 401 on missing or invalid tokens:

The req.agent object

On success, the middleware attaches:

Selective route protection