Run a script on Wireguard login

Hello I try to run a script when a user login via Wireguard. Is that possible? This is what I have:

/interface wireguard set wireguard1 on-up=WireGuardConnectScript

and

/system script add name=WireGuardConnectScript source={
  :log info "Wireguard Login from $peername"
}

Thanks for helping me out

But how, the shitty answer that ChatGPT gave you, just for chat, isn’t enough?

wireguard (“users”) peers do not login
there is a handshake but no login - so there is no destinctive event i guess to handle which could invoke a script