fix(session): kv is not initialized

This commit is contained in:
Aaron Liu
2025-05-23 20:01:10 +08:00
parent 9a96a88243
commit ec53769e33
2 changed files with 4 additions and 2 deletions

View File

@ -751,7 +751,7 @@ func (d *dependency) TokenAuth() auth.TokenAuth {
}
d.tokenAuth = auth.NewTokenAuth(d.HashIDEncoder(), d.SettingProvider(),
[]byte(d.SettingProvider().SecretKey(context.Background())), d.UserClient(), d.Logger())
[]byte(d.SettingProvider().SecretKey(context.Background())), d.UserClient(), d.Logger(), d.KV())
return d.tokenAuth
}