Feature/1.0/root#8
Open
ElizabethGaneshan wants to merge 28 commits into
Open
Conversation
added 28 commits
April 4, 2024 15:34
…swer at the right component
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.