Optional
algorithms?: Algorithm[]The algorithms used for JWT token verification
Optional
onAuthorization?: (decodedToken: JwtPayload) => {}A callback function called when authorization is successful.
Optional
role?: string | string[]The role(s) required for accessing the protected route
Optional
secret?: stringThe secret used to sign and verify JWT tokens
Options for configuring authorization middleware