How to use the @esri/arcgis-rest-auth.UserSession.authorize function in @esri/arcgis-rest-auth

To help you get started, we’ve selected a few @esri/arcgis-rest-auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / arcgis-rest-js / demos / webmap-checker-sapper / src / routes / auth / authorize.js View on Github external
export function get(request, response, next) {
  UserSession.authorize(
    {
      clientId: CLIENT_ID,
      redirectUri: REDIRECT_URI
    },
    response
  );
}
github Esri / arcgis-rest-js / demos / express / server.js View on Github external
app.get("/authorize", function(req, res) {
  UserSession.authorize(credentials, res);
});