Skip to content

Instantly share code, notes, and snippets.

@hhkaos
Created October 27, 2022 17:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hhkaos/9c0aa759d9c6550d02c9541f34cd1a67 to your computer and use it in GitHub Desktop.
Save hhkaos/9c0aa759d9c6550d02c9541f34cd1a67 to your computer and use it in GitHub Desktop.
import express from 'express';
const app = express()
const port = 3000
app.get('/', async (req, res) => {
res.redirect('https://www.arcgis.com/sharing/rest/oauth2/authorize/?client_id=XXXXX&redirect_uri=https://hhkaos.github.io/arcgis-oauth-callback/&response_type=code&code_challenge=qaXuju2sX8lKLvErIKHfdrg0h7DLvSeLuErfsfMJFj4&code_challenge_method=S256')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment