
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
MODS SDK
Run npm run build to build the library
Add mods.js file to the html page:
<script src="./mods.min.js" ></script>
API samples:
// Initialize the MODS SDK, throw Error when not in teams
await MODS.init();
// Get basic user info from SSO token
var userInfo = MODS.getUserInfo();
// Get microsoft graph client
var graphClient = MODS.getMicrosoftGraphClient();
/** Get microsoft graph auth provider, you can use this auth provider for the graph client by yourself
* For example as below
* var authProvider = MODS.getMicrosoftGraphAuthProvider();
* Client.init({
defaultVersion: "v1.0",
debugLogging: true,
authProvider: authProvider
})
*/
var authProvider = MODS.getMicrosoftGraphAuthProvider();
/** Call graph api
* When call graph API, it would first try to get access token from memory and localStorage
* If no token exists, it would acquire the token from MODS
* If MODS also doesn't have the token, it would throw an error, and you need to call the function below to get a new token:
* MODS.popupLogInPage();
**/
try {
var profile = await graphClient.api("/me").get();
var photoBlob = await graphClient.api("/me/photos('120x120')/$value").get();
} catch (err) {
if (err.message.indexOf("Access token is expired or invalid") >= 0) {
// Popup login page to get Microsoft Graph access token
// The access token would be managed by the SDK and cached in localStorage
MODS.popupLogInPage();
//... use graph client
}
}
FAQs
Client SDK for MODS
The npm package teamsauth receives a total of 1 weekly downloads. As such, teamsauth popularity was classified as not popular.
We found that teamsauth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.