However, it may or may not solve your problem. In case it does not solve your problem, try the below solution.

There are new packages on atmosphere with the names of useraccounts:iron-routing and useraccounts:flow-routing that seems to be required now in the latest version to use the ‘ensureSignedIn’ feature. Based on the router you are using, add one of these packages to your app and it should solve your problem.