FRP and OEM locks bricked my Samsung phone after root I recently flashed my SM-J701F (Samsung Galaxy J7 Nxt, Android 8.1) with TWRP and Magisk.

Both OEM and RFP locks somehow turned themselves on when I tried to reboot, effectively bricking it by leaving me unable to either boot into any mode or flashing anything using Odin. (Odin always returns FAIL)

It's now asking me to use Smart Switch's emergency recovery feature, but that software refuses to recognize my device too.
Base on my research you can fix the OEM lock by flashing Samsung stock signed firmware using Odin or Samsung tool pro. To remove the frp you need to create a modded boot where the USB debugging is on. You can make one in assayyed kitchen you just need your stock boot, you can get stock boot at the firmware files, let's assume you flash the modded boot. You will boot to your phone but the frp locks is still there what you need to do is connect your phone to your PC then open Samsung tool pro find your phone model there then remove frp using adb.

P.S. Factory data reset your phone after flashing modded boot (optional)