Member Login/Logout Tweak

I’m not the best with coding (trying to learn as I go). How do I add to the code below, an internal page redirect when a member logs in to the site??? Thanks in advance.

import wixLocation from ‘wix-location’ ;
import { authentication } from ‘wix-members’ ;

$w . onReady ( function () {

authentication . onLogout (() => { 

    console . log ( 'Member logged out.' ); 

    wixLocation . to ( "/home" ); 

});

The same way you did onLogout().

import {authentication} from 'wix-members';

authentication.onLogin(async (member) => {
  const loggedInMember = await member.getMember();
  const memberId = loggedInMember._id;
  console.log(`Member ${memberId} logged in:`, loggedInMember);
});

Thanks @bwprado but do I add this directly after the logout code and do I need to add another wixLocation line for the Logout?