Added auth method to allow checking the current authentication state.