Skip to content

web-backend


Class: InvalidTokenFilter

Defined in: packages/web-backend/src/filters/invalid-token.filter.ts:8

Formats 401/invalid token errors into a consistent JSON response shape.

Implements

  • ExceptionFilter

Constructors

Constructor

new InvalidTokenFilter(): InvalidTokenFilter

Returns

InvalidTokenFilter

Methods

catch()

catch(exception, host): void

Defined in: packages/web-backend/src/filters/invalid-token.filter.ts:9

Method to implement a custom exception filter.

Parameters

exception

HttpException

the class of the exception being handled

host

ArgumentsHost

used to access an array of arguments for the in-flight request

Returns

void

Implementation of

ExceptionFilter.catch