I need to use oauth2 to allow users on our platform to login with Esri and view their private layers. With vanilla javascript, I would use IdentityManager however, I cannot find an equivalent for use in React. Namely, I don't know what import statement to use to import the identity manager and oauth Esri packages.
I've found the arcgis node repo but the documentation doesn't state how I can use oauth.