I need to get login-token which is generated using TokenUtil upon creation. I'm using the below method to create it. I need it in the very next step of the below method call-
public static AuthenticationInfo createCredentials(HttpServletRequest request, HttpServletResponse response, SlingRepository repository, String userId, boolean httpOnly)
Please help me in this. Is there any way to get it without admin login?