UNPKG

dsx-folder-templates-client

Version:

A use case of the Dropbox Solutions Accelerators project. This solution creates folder structures from pre-defined templates. This is the frontend app.

10 lines (8 loc) 283 B
import {useSearchParams} from 'react-router-dom'; export default function Auth() { const [searchParams, setSearchParams] = useSearchParams(); const code = searchParams.get("code") console.log('here'); fetch("/token?code="+code) .then(() => window.location.replace("/")) }