follow_user and create_article handlers are using user_claims: Claims as method arguments.
But they are using only user_claims.sub part which is actually the UserId.
Therefore, it's more clear and efficient to use user_id: UserId extractor.
And update_article and delete_article handlers are not using any of these, so they behave as public (not protected as they should be) endpoints.
follow_user
andcreate_article
handlers are usinguser_claims: Claims
as method arguments. But they are using onlyuser_claims.sub
part which is actually theUserId
. Therefore, it's more clear and efficient to useuser_id: UserId
extractor.And
update_article
anddelete_article
handlers are not using any of these, so they behave as public (not protected as they should be) endpoints.