The problem is not with the reset password link, meaning the token that is generated in the first step is working and the user sees the whole link with the long id from the token.

the problem is in the second link, where I search to find the invitation code of the user that will get invited via the email that ill be sent.
the problem is that I can see the invitation code from the debugger, but when the user sees the invitation link the invitation code is not there.