Configuring spa to use active directory signup flow?

Does anybody know how to configure spa to use active directory(not b2c) signup flow?

You likely want to use https://www.npmjs.com/package/msal
See https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app