ArcGIS Maps SDK for JavaScript OAuth2 Code Snippet This sample contains pseudocode to quickly implement OAuth2 login to ArcGIS Enterprise or ArcGIS Online with the ArcGIS Maps SDK for JavaScript.