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
Returns authData
object with isAuth
, expired
and userId
properties.