How to use the msal.User function in msal

To help you get started, we’ve selected a few msal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dalyIsaac / onenote-markdown-old / src / testObjects / users.ts View on Github external
import { User } from "msal";
import { UserData } from "../types/UserData";

export const userId = "jane.doe@email.com";
export const userId1 = "john.smith@email.com";

export const user = new UserData(
  new User(
    "john.smith@email.com",
    "John Smith",
    "identityProvider1",
    "genericstring1",
    {}
  ),
  "photoString1"
);

export const user1 = new UserData(
  new User(
    "jane.doe@email.com",
    "Jane Doe",
    "identityProvider2",
    "genericstring2",
    {}
github dalyIsaac / onenote-markdown-old / src / testObjects / users.ts View on Github external
export const userId = "jane.doe@email.com";
export const userId1 = "john.smith@email.com";

export const user = new UserData(
  new User(
    "john.smith@email.com",
    "John Smith",
    "identityProvider1",
    "genericstring1",
    {}
  ),
  "photoString1"
);

export const user1 = new UserData(
  new User(
    "jane.doe@email.com",
    "Jane Doe",
    "identityProvider2",
    "genericstring2",
    {}
  ),
  "photoString2"
);

export const parentSelfUser = "jane.doe@email.com";