Respond with unauthorized instead of error

This commit is contained in:
bluepython508 committed 2023-11-10 00:26:07 +00:00
1 parent 6fb839824e
commit 21ad6931b7
2 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ defmodule SsoBsnWeb.Router do
end
scope "/", SsoBsnWeb do
pipe_through [:api, :fetch_session, :fetch_current_user, :require_authenticated_user]
pipe_through [:api, :fetch_session, :fetch_current_user]
get "/whoami", UserSessionController, :check_auth
end