Fix API token handling
This commit is contained in:
parent
6863da9462
commit
fde03538e0
@ -6,7 +6,8 @@ namespace PluralKit.API
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user