mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix API token handling
This commit is contained in:
parent
6863da9462
commit
fde03538e0
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue