Should reply include unauthenticated error if redirectOnTry = false
and mode is try
?
#18
Labels
support
Questions, discussions, and general support
I want auth to be optional, and simply return a slightly different page whether you have a session or not.
It seems like i should be able to set
auth.mode
totry
andredirectOnTry = false
and reply without passing the error through.The unauthenticated error gets created here: https://github.com/spumko/hapi-auth-cookie/blob/master/lib/index.js#L81
Then included here: https://github.com/spumko/hapi-auth-cookie/blob/master/lib/index.js#L109
It replies properly but that exception shows up in logs even though it's not an exception .
Seems like maybe it shouldn't? Or am I doing it wrong.
I basically want optional auth without errors in either case.
The text was updated successfully, but these errors were encountered: