Amend redirect URI

This commit is contained in:
2025-07-17 17:52:24 +02:00
parent 7713c8e4ae
commit 5c9c0cde60

View File

@@ -1,12 +1,16 @@
import type {UserManagerSettings} from "oidc-client-ts"; import type {UserManagerSettings} from "oidc-client-ts";
const redirectUri = import.meta.env.PROD
? "https://dex.smoothbrain.win"
: "http://localhost:5173";
export const oidcConfig: UserManagerSettings = { export const oidcConfig: UserManagerSettings = {
authority: 'https://auth.smoothbrain.win/application/o/dex/', authority: 'https://auth.smoothbrain.win/application/o/dex/',
client_id: 'K202NAqkgfjceLZr28gAVQgJDc6RjZfdrE1jNx0K', client_id: 'K202NAqkgfjceLZr28gAVQgJDc6RjZfdrE1jNx0K',
redirect_uri: 'https://dex.smoothbrain.win/callback', redirect_uri: `${redirectUri}/callback`,
response_type: 'code', response_type: 'code',
scope: 'openid profile email', scope: 'openid profile email',
post_logout_redirect_uri: 'httpS://dex.smoothbrain.win', post_logout_redirect_uri: redirectUri,
loadUserInfo: true, loadUserInfo: true,
automaticSilentRenew: true, automaticSilentRenew: true,
extraQueryParams: { extraQueryParams: {