Is it possible to set callbackUrl on server-side email sign Ups?

I would like to handle my sign ups on the server side, but I'm struggling to find a proper way to set my callbackUrl in the documentation for the email verification.

Tried it like this, but this doesn't seem to work
await auth.api.signUpEmail({
    body: {
        name: username,
        email,    
        password
    },                
    asResponse: true,
    callbackUrl: '/my-url'
});


How can I set it properly? Or do I have to add it manually in auth.ts?
Was this page helpful?