Skip to content

Instantly share code, notes, and snippets.

@jackrobertscott
Created December 10, 2019 11:19
Show Gist options
  • Save jackrobertscott/0fb1d97a7e5632fd7e9fe5ae50d73839 to your computer and use it in GitHub Desktop.
Save jackrobertscott/0fb1d97a7e5632fd7e9fe5ae50d73839 to your computer and use it in GitHub Desktop.
import * as queryString from 'query-string';
const urlParams = queryString.parse(window.location.search);
console.log(`The code is: ${urlParams.code}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment