Trouble Handling Authorization Error in TypeScript Code - Effect Community