mirror of
https://github.com/tale/headplane.git
synced 2026-09-04 11:15:42 +00:00
fix: use headscale.api_key where possible
This commit is contained in:
@@ -107,7 +107,7 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
});
|
||||
|
||||
try {
|
||||
const hsApi = context.hsApi.getRuntimeClient(context.oidc!.apiKey);
|
||||
const hsApi = context.hsApi.getRuntimeClient(context.headscaleApiKey!);
|
||||
const hsUsers = await hsApi.getUsers();
|
||||
const hsUser = findHeadscaleUserBySubject(hsUsers, claims.sub, userInfo.email);
|
||||
if (hsUser) {
|
||||
|
||||
Reference in New Issue
Block a user