use the configuration to get the URL of the resource server

This commit is contained in:
Sven Czarnian
2022-11-04 22:49:29 +01:00
parent f1f76aa6b9
commit 13d943b5fb

View File

@@ -11,7 +11,7 @@ export const Login: React.FC = () => {
const url = [ const url = [
Configuration.vatsim.authorizeUrl, Configuration.vatsim.authorizeUrl,
`?client_id=${Configuration.vatsim.clientId}`, `?client_id=${Configuration.vatsim.clientId}`,
`&redirect_uri=http://localhost:3000/auth/vatsim`, `&redirect_uri=${Configuration.resourceServer}/auth/vatsim`,
`&response_type=code`, `&response_type=code`,
`&scope=full_name+vatsim_details`, `&scope=full_name+vatsim_details`,
`&approval_prompt=auto`, `&approval_prompt=auto`,