hi i have this code
---
import DefaultLayout from '../layouts/DefaultLayout.astro'
const { cookies, redirect } = Astro;
const accessToken = cookies.get("sb-access-token");
const refreshToken = cookies.get("sb-refresh-token");
if (accessToken && refreshToken) {
return redirect("/dashboard");
}
---
<DefaultLayout title="Sign in">
<h1>Sign in</h1>
<p>New here? <a href="/register">Create an account</a></p>
<form action="/api/auth/signin" method="post">
<button value="discord" name="provider" type="submit">Sign in with Discord</button>
</form>
</DefaultLayout>```
and i want that my action from for direct to ts file (from path i included)