Search
Preparing search index...
The search index is not available
api.goodchat - v1.0.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
api.goodchat - v1.0.0
lib/middlewares/authenticate
Module lib/middlewares/authenticate
Index
Properties
default
Properties
default
default
:
(
config
:
GoodChatConfig
, permissions
?:
GoodChatPermissions
|
GoodChatPermissions
[]
)
=>
KoaChatMiddleware
Type declaration
(
config
:
GoodChatConfig
, permissions
?:
GoodChatPermissions
|
GoodChatPermissions
[]
)
:
KoaChatMiddleware
Creates an authentication middleware
The middleware will:
return a 401 if it fails to authenticate a user
return a 403 if the user does not match the permissions passed as arg
export
Parameters
config:
GoodChatConfig
permissions:
GoodChatPermissions
|
GoodChatPermissions
[]
= ...
Returns
KoaChatMiddleware
Modules
lib/middlewares/authenticate
default
Generated using
TypeDoc
Creates an authentication middleware
The middleware will: