i\'ve a weird architcture, where in a method there is a call to another external method(a different api) that generares an authentication token and return it as string to the ca