Fix API token handling

This commit is contained in:
Ske 2020-02-01 22:17:13 +01:00
parent 6863da9462
commit fde03538e0

View File

@ -6,7 +6,8 @@ namespace PluralKit.API
{ {
protected override void Load(ContainerBuilder builder) protected override void Load(ContainerBuilder builder)
{ {
builder.RegisterType<TokenAuthService>().AsSelf(); // Lifetime scope so the service, RequiresSystem, and handler itself all get the same value
builder.RegisterType<TokenAuthService>().AsSelf().InstancePerLifetimeScope();
} }
} }
} }