supabase.auth.api.setAuthCookie does not exist on the rc2?

using this to set the server cookie. don't see anything in the docs
TypeError: Cannot read properties of undefined (reading 'setAuthCookie')
  3 | export default function handler(req, res) {
  4 |   console.log(supabase.auth.api);
> 5 |   supabase.auth.api.setAuthCookie(req, res);
    |  ^
  6 | }
Was this page helpful?