When I use API-Gateway to define my endpoints, some of my endpoints are only accessible from a signin-ed user. (I am using Cognito User Pool to manage my users)
I see different ways to achieve this goal
Right now, I am using option 2, but I don't understand when I should use option 1. Are they essentially just different approaches to achieve the same goal or are they different?