Skip to content

Commit

Permalink
fix(cors): fix profile sdk env
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricmagne committed Sep 23, 2024
1 parent a0eb69a commit 5b61d00
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/lib/siwsrp/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ export const AUTH_WALLET_PROJECTS = "auth.wallet.projects";
export const getHydraEnv = (): HydraEnv => {
const platform = Platform.INFURA;

if (VERCEL_ENV === "production") {
// if (VERCEL_ENV === "production") {
return {
...getEnvUrls(Env.PRD),
env: Env.PRD,
platform,
};
} else {
return {
...getEnvUrls(Env.DEV),
env: Env.DEV,
platform,
};
}
// } else {
// return {
// ...getEnvUrls(Env.DEV),
// env: Env.DEV,
// platform,
// };
// }
};

console.log(VERCEL_ENV)

const storage: SDK.AuthStorageOptions = {
getLoginResponse: async () => {
const storedResponse = localStorage.getItem(AUTH_WALLET_SESSION_NAME);
Expand Down

0 comments on commit 5b61d00

Please sign in to comment.