Minor Changes
-
Fix
auth.protect()unauthorized error propagation within middleware (#6169) by @wobsoriano -
-
Optimize
auth()calls to avoid unnecessary verification calls when the provided token type is not in theacceptsTokenarray. (#6123) by @wobsoriano -
Add handling for invalid token types when
acceptsTokenis an array inauthenticateRequest(): now returns a clear unauthenticated state (tokenType: null) if the token is not in the accepted list.
-