Skip to main content

talawa-api / Exports / middleware/isAuth

Module: middleware/isAuth

Table of contents

Interfaces

Functions

Functions

isAuth

isAuth(request): InterfaceAuthData

This function determines whether the user is authorised and whether the access token has expired.

Parameters

NameType
requestRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

Returns

InterfaceAuthData

Returns authData object with isAuth, expired and userId properties.

Defined in

src/middleware/isAuth.ts:17