Amend redirect URI
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
import type {UserManagerSettings} from "oidc-client-ts";
|
import type {UserManagerSettings} from "oidc-client-ts";
|
||||||
|
|
||||||
export const oidcConfig : UserManagerSettings = {
|
const redirectUri = import.meta.env.PROD
|
||||||
|
? "https://dex.smoothbrain.win"
|
||||||
|
: "http://localhost:5173";
|
||||||
|
|
||||||
|
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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user