From 83d936d98c05384c5a0e347ab230e969dab5b034 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 3 Oct 2023 20:09:19 +0200 Subject: [PATCH] Override keys --- src/Logic/Osm/OsmConnection.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Logic/Osm/OsmConnection.ts b/src/Logic/Osm/OsmConnection.ts index 13a0294396..ecf29dcf2c 100644 --- a/src/Logic/Osm/OsmConnection.ts +++ b/src/Logic/Osm/OsmConnection.ts @@ -72,11 +72,8 @@ export class OsmConnection { import.meta.env.VITE_OSM_OAUTH_SECRET !== undefined ) { console.debug("Using environment variables for oauth config") - this._oauth_config = { - oauth_client_id: import.meta.env.VITE_OSM_OAUTH_CLIENT_ID, - oauth_secret: import.meta.env.VITE_OSM_OAUTH_SECRET, - url: "https://api.openstreetmap.org", - } + this._oauth_config.oauth_client_id = import.meta.env.VITE_OSM_OAUTH_CLIENT_ID + this._oauth_config.oauth_secret = import.meta.env.VITE_OSM_OAUTH_SECRET } this.userDetails = new UIEventSource(