You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that the validate function is only run if the token has been verified as having your signature (this is due to hapi-auth-jwt2 authenticating under the hood), so I think token will always exist. i.e. the "if (!token)" branch won't run.
The validate function could do some checks on the info in the token, e.g. check who the user is or something similar.
The text was updated successfully, but these errors were encountered:
https://github.com/FACN1/week8-edjy/blob/master/src/server.js#L26-L30
I believe that the validate function is only run if the token has been verified as having your signature (this is due to hapi-auth-jwt2 authenticating under the hood), so I think token will always exist. i.e. the "if (!token)" branch won't run.
The validate function could do some checks on the info in the token, e.g. check who the user is or something similar.
The text was updated successfully, but these errors were encountered: