JSFiddle - React, Tailwind, and code Playground

by brigand

JavaScript

{
  const location = {
    pathname: '/signin/',
    hash: '#access_token=123'
  };
  const token = new URLSearchParams(location.hash.slice(1)).get('access_token')
  console.log(token)
}