How can I auth all routes?


Continuing the discussion from Auth for routes:

I curious that same thing above question, I will have to input check sentence in every function? That’s not cool.

If someone know the solution, could you tell me?


Auth all routes = Auth from settings, not decorator.
Input check in every function = Schemas Validations.

Not sure the question is clear enough… :thinking:


Sorry, I can’t explain well because i’m not native English speaker.

I want to make Authenticate check function using jwt like ‘apistar-jwt’. So I was check the library ‘apistat-jwt’. But it’s a little bit different what i wanna do. I’d like to save the jwt token in session, not in header. So i am just doing Authenticate call the function in every route.