FEAT: OAuth now redirects to last URL signed in
UPDATE: Created the page to display lists of categories
This commit is contained in:
@@ -3,7 +3,8 @@ import { useEffect } from "react";
|
||||
export default function GoogleLogin() {
|
||||
const handleLoginClick = (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
e.preventDefault();
|
||||
window.location.href = "/api/login/google";
|
||||
const nextUrl = encodeURIComponent(window.location.href);
|
||||
window.location.href = `/api/login/google?next=${nextUrl}`;
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user