It is very much possible to build multi-tenant mobile apps backed by
Azure Active Directory authentication. However, I doubt if Mobile
Service will help here. Rather, I'll recommend creating a WebAPI
project with AD authentication and consume those APIs in mobile apps.
The samples that you've mentioned can be very much useful.
For Linux, I'm not able to get it working.
But For windows, below blog is a good reference which works for me
You can use the application key or the master key from your mobile
service. In the Azure portal, go to your mobile service and in the
dashboard select the manage keys option on the bottom of the page. You
should use this key as the password, and any value (even empty) for
the user name.
For upgrading npm, you can follow the instructions from David Ebbo on
this forum post: