Skip to content

Feature/1.0/root#8

Open
ElizabethGaneshan wants to merge 28 commits into
derisen:mainfrom
ElizabethGaneshan:feature/1.0/Root
Open

Feature/1.0/root#8
ElizabethGaneshan wants to merge 28 commits into
derisen:mainfrom
ElizabethGaneshan:feature/1.0/Root

Conversation

@ElizabethGaneshan

Copy link
Copy Markdown

No description provided.

Elizabethg added 28 commits April 4, 2024 15:34
…tication state, the msal context, we wrap them with the msal provider.
1. Using useMsal hook provided by the msal-react
2. Getting access to the instance which we created earlier
1. Passing the scopes:["user.read"] because we can get the consent of the user when they first sign in and can also access the token later on.
2. Adding the onClick event to the button and passing the handleSignIn function.
…ct to indicate that the user is signed in or not
…ppropriate text based on the conditions if signed in or not.
Welcome.jsx
   8.1 Use the useMsal hook provided by the msal react.
   8.2 Using the useEffect hook because when this compoenent mounts we want to get the current active account.
       access the current userName.
	   Still we won't be able to get the active user.........Therefore we will register an event
…so Added the function for sign out using msal hook provided by the msal-react
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant