Sharing online passes is prohibited and technically prevented.
Online Pass era (2010–2014): EA, THQ, Sony, Ubisoft included codes in new copies. Used buyers paid $10–15 for access. Abandoned industry-wide due to backlash—replaced by always-online designs, battle passes, live service.
Online passes are dead. Don't chase workarounds for a defunct system.