client: redirect to /new when authenticated

This commit is contained in:
Max Leiter 2022-03-29 13:22:47 -07:00
parent 62a77b619e
commit a84459b859
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -41,7 +41,7 @@ const Auth = ({ page }: { page: "signup" | "signin" }) => {
signin(json.token) signin(json.token)
Cookies.set('drift-userid', json.userId); Cookies.set('drift-userid', json.userId);
router.push('/') router.push('/new')
} }
const handleSubmit = async (e: FormEvent<HTMLFormElement>) => { const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {