79323998

Date: 2025-01-02 14:27:38
Score: 1
Natty:
Report link

I found a work around for this when setting up token acquisition in the Program.CS file. The error is caused because the hosted service is a singleton but the token acquisition is a scoped service. This stops the error since the Token generation happens as a singleton.

 .AddTokenAcquisition(isTokenAcquisitionSingleton: true)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29025364