From 13d943b5fbc9064a9e475626c8e42c6dc9832905 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Fri, 4 Nov 2022 22:49:29 +0100 Subject: [PATCH] use the configuration to get the URL of the resource server --- src/components/login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/login.tsx b/src/components/login.tsx index 7adc6b6..dea9ac4 100644 --- a/src/components/login.tsx +++ b/src/components/login.tsx @@ -11,7 +11,7 @@ export const Login: React.FC = () => { const url = [ Configuration.vatsim.authorizeUrl, `?client_id=${Configuration.vatsim.clientId}`, - `&redirect_uri=http://localhost:3000/auth/vatsim`, + `&redirect_uri=${Configuration.resourceServer}/auth/vatsim`, `&response_type=code`, `&scope=full_name+vatsim_details`, `&approval_prompt=auto`,