make oauth redirect url depends on env mode
This commit is contained in:
parent
e598a02670
commit
10a997a8a1
2 changed files with 1 additions and 7 deletions
|
|
@ -3,7 +3,7 @@ import { WebStorageStateStore } from "oidc-client-ts";
|
|||
export const oidcConfig = {
|
||||
authority: "https://authentik.viktorbarzin.me/application/o/wrongmove/",
|
||||
client_id: "5AJKRgcdgVm1OyApBzFkadDFfStW9a555zwv2MOe",
|
||||
redirect_uri: "https://devvm.viktorbarzin.lan/callback",
|
||||
redirect_uri: import.meta.env.MODE === 'development' ? "https://devvm.viktorbarzin.lan/callback" : "https://wrongmove.viktorbarzin.me/callback",
|
||||
userStore: new WebStorageStateStore({ store: window.localStorage }),
|
||||
response_type: 'code', // PKCE flow (recommended for SPAs)
|
||||
scope: 'openid profile email', // Requested scopes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue