talawa-api / Exports / middleware/isAuth
▸ isAuth(request
): InterfaceAuthData
This function determines whether the user is authorised and whether the access token has expired.
Name | Type |
---|---|
request |
Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
Returns authData
object with isAuth
, expired
and userId
properties.