Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.11 KB

middleware_isAuth.md

File metadata and controls

37 lines (20 loc) · 1.11 KB

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

Name Type
request Request<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