Correct Answer : ctx.isAuthenticated()
Explanation : ctx.isAuthenticated() method is used to determine if a user is authenticated.
ctx.isAuthenticated()