Local action for fermionic unconstrained higher spin gauge fields in AdS and dS spacetimes