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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A3512F2F2F17EBDA

View file

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