'Authenticate user in msal js without redirect

I'm using a register form that use a rest api (nodejs) to add users to our application and add them to azure ad connect too . Is there is any solutions to make the user authenticated to msal/react after the register form ? I return to the user the access token generated from azure-ad after the registration .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source