@marblejs-contrib/middleware-joi
.jsonwebtoken
package under the hood. It wraps the package API into more
RxJS-friendly abstractions that can be partially applied and composed inside Effect streams.@marblejs/core
to be installed.VerifyOptions
(payload: object) => Observable<object>
req.user
parameter. If the stream throws an error (eg. during the validation) the authorize$ middleware responds with 401 / Unauthorized
error.string | Buffer
string[]
string | string[]
number
number
string | string[]
boolean
boolean
string
string
verifyPayload$
throws an error, the middleware responds with 401 / Unauthorized
error.