Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed name of authHandler to authMiddleware
  • Loading branch information
x7airworker committed Jan 23, 2022
commit 7240ad92e2602adacfada815e6f9783b35b00c12
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean tokenHandler (Exchange exchange) {
return false;
}

public Object authHandler (Exchange exchange) throws AuthException {
public Object authMiddleware (Exchange exchange) throws AuthException {
if (exchange.attrib("jwt") == null) {
exchange.status(401);
throw new AuthException("Authentication required");
Expand Down