Help with session - I can't get the refresh_token

I am trying to get the refresh_token from an already logged user using supabaseClient.auth.session() when load the page but doesn't return that value.

This is the code
import { supabaseClient } from '@supabase/supabase-auth-helpers/nextjs';
import { useUser } from '@supabase/supabase-auth-helpers/react';

const Onboarding = () => {
  const { user } = useUser();
...
  useEffect(() => {
    if (user) {
      console.log('session: ', supabaseClient.auth.session());
...
}


The value displayed is:
{
    "access_token": "user.jwt.tokenxxxx",
    "token_type": "bearer",
    "user": null
}


Why I can't access the refresh token?
Was this page helpful?