Merge pull request #6 from jamesii-b/v1.01/stable

Fix: Join the invite link would navigate to create org.
This commit is contained in:
2026-04-08 16:43:55 +09:30
committed by GitHub
+3 -1
View File
@@ -11,7 +11,7 @@ export default function InviteAcceptPage() {
const navigate = useNavigate();
const [searchParams] = useSearchParams();
const token = searchParams.get("token") || "";
const { login } = useAuth();
const { refreshUser, checkOrgAdmin } = useAuth();
const [name, setName] = useState("");
const [password, setPassword] = useState("");
@@ -63,6 +63,8 @@ export default function InviteAcceptPage() {
// Store the token manually since we're not using the normal login flow
localStorage.setItem("secuird_token", result.token);
}
await refreshUser();
await checkOrgAdmin();
navigate("/profile");
} catch (err: unknown) {
const msg = err instanceof ApiError ? err.message : "Failed to accept invite.";