diff --git a/Foxnouns.Backend/Controllers/Authentication/FediverseAuthController.cs b/Foxnouns.Backend/Controllers/Authentication/FediverseAuthController.cs index 3dcc817..edc7b6a 100644 --- a/Foxnouns.Backend/Controllers/Authentication/FediverseAuthController.cs +++ b/Foxnouns.Backend/Controllers/Authentication/FediverseAuthController.cs @@ -44,7 +44,7 @@ public class FediverseAuthController( [ProducesResponseType(statusCode: StatusCodes.Status200OK)] public async Task GetFediverseUrlAsync( [FromQuery] string instance, - [FromQuery] bool forceRefresh = false + [FromQuery(Name = "force-refresh")] bool forceRefresh = false ) { if (instance.Any(c => c is '@' or ':' or '/') || !instance.Contains('.')) @@ -139,7 +139,7 @@ public class FediverseAuthController( [Authorize("*")] public async Task AddFediverseAccountAsync( [FromQuery] string instance, - [FromQuery] bool forceRefresh = false + [FromQuery(Name = "force-refresh")] bool forceRefresh = false ) { if (instance.Any(c => c is '@' or ':' or '/') || !instance.Contains('.')) diff --git a/Foxnouns.Frontend/src/routes/auth/log-in/+page.server.ts b/Foxnouns.Frontend/src/routes/auth/log-in/+page.server.ts index 6b4dfa6..9c6bf25 100644 --- a/Foxnouns.Frontend/src/routes/auth/log-in/+page.server.ts +++ b/Foxnouns.Frontend/src/routes/auth/log-in/+page.server.ts @@ -65,7 +65,7 @@ export const actions = { try { const resp = await apiRequest<{ url: string }>( "GET", - `/auth/fediverse?instance=${encodeURIComponent(instance)}&forceRefresh=true`, + `/auth/fediverse?instance=${encodeURIComponent(instance)}&force-refresh=true`, { fetch, isInternal: true }, ); redirect(303, resp.url); diff --git a/Foxnouns.Frontend/src/routes/settings/auth/add-fediverse/+page.server.ts b/Foxnouns.Frontend/src/routes/settings/auth/add-fediverse/+page.server.ts index 934367d..5c3327d 100644 --- a/Foxnouns.Frontend/src/routes/settings/auth/add-fediverse/+page.server.ts +++ b/Foxnouns.Frontend/src/routes/settings/auth/add-fediverse/+page.server.ts @@ -24,7 +24,7 @@ export const actions = { const { url } = await apiRequest<{ url: string }>( "GET", - `/auth/fediverse/add-account?instance=${encodeURIComponent(instance)}&forceRefresh=true`, + `/auth/fediverse/add-account?instance=${encodeURIComponent(instance)}&force-refresh=true`, { isInternal: true, fetch,