Vaadin scope

I created simple bean

@Component
@VaadinSessionScope
@RequiredArgsConstructor
public class SessionService {...}

When I inject it in UI all work fine

public class LoginView extends PolymerTemplate<TemplateModel> implements BeforeEnterObserver {
  private final AuthService authService;
  private final SessionService sessionService;
  public LoginView(AuthService authService, SessionService sessionService) {}
}

But when I try inject it in AuthService

@Component
@RequiredArgsConstructor
public class AuthService {
  private final SessionService sessionService;
}

I have the following error

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionService': Scope 'vaadin-session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No VaadinSession bound to current thread
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:368)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1287)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1207)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789)
	... 81 more
Caused by: java.lang.IllegalStateException: No VaadinSession bound to current thread
	at com.vaadin.flow.spring.scopes.AbstractScope.getVaadinSession(AbstractScope.java:75)
	at com.vaadin.flow.spring.scopes.VaadinSessionScope.getBeanStore(VaadinSessionScope.java:86)
	at com.vaadin.flow.spring.scopes.AbstractScope.get(AbstractScope.java:44)
	at com.vaadin.flow.spring.scopes.VaadinSessionScope.get(VaadinSessionScope.java:37)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:356)
	... 87 more

How I can fix it?

No one has encountered this problem?

No one has encountered this problem?

AuthService has singleton scope ao there is only one instance. On the other hand, there are many SeasionService intances so there is no way to know which one to inject. Maybe use vaadin session scope for AuthService as well?

Alejandro Duarte:
AuthService has singleton scope ao there is only one instance. On the other hand, there are many SeasionService intances so there is no way to know which one to inject. Maybe use vaadin session scope for AuthService as well?

Thank for your advice