Hi,
In the serverAuth$ generator function, as part of the object you pass, you can pass pages object. One of the object entries is signIn, which will redirect to that url (as long as it exists in the routes folder).
`export const { useAuthSignin, useAuthSignout, useAuthSession, onRequest } = serverAuth$(
() => {
return ({
secret: import.meta.env.VITE_AUTH_SECRET,
trustHost: true,
pages: {
signIn: '/signin'
},
...`
From there you can continue and write your own login page. The authentication will still run in the authorize you provided.