Back to Pocketbase

Interface requireSameCollectionContextAuth

static/jsvm/interfaces/apis.requireSameCollectionContextAuth.html

latest955 B
Original Source

Interface requireSameCollectionContextAuth

Hierarchy

  • requireSameCollectionContextAuth

  • requireSameCollectionContextAuth(collectionPathParam): hook.Handler<RequestEvent>

RequireSameCollectionContextAuth middleware requires a request to have a valid record Authorization header and the auth record's collection to match the one from the route path parameter (default to "collection" if collectionParam is empty).

Parameters

collectionPathParam: string

Returns hook.Handler<RequestEvent>

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc