Skip to content

Commit

Permalink
fix(mm-login): add console log to check vercel_env value (#1575)
Browse files Browse the repository at this point in the history
* fix(mm-login): add console log to check vercel_env value

* fix(mm-login): add console log to check vercel_env value
  • Loading branch information
Cédric Magne authored Sep 25, 2024
1 parent 79dd3b9 commit be0650c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AuthLogin/AuthModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
saveTokenString,
getUserIdFromJwtToken,
} from "../../lib/siwsrp/auth";
import { DASHBOARD_URL, REQUEST_PARAMS, REF_PATH } from "@site/src/lib/constants";
import { DASHBOARD_URL, REQUEST_PARAMS } from "@site/src/lib/constants";
import { MetamaskProviderContext } from "@site/src/theme/Root";

Modal.setAppElement("#__docusaurus");
Expand Down
1 change: 1 addition & 0 deletions src/lib/siwsrp/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const auth = new JwtBearerAuth(
export const authenticateAndAuthorize = async (env: string) => {
let accessToken: string, userProfile: SDK.UserProfile;
VERCEL_ENV = env;
console.log(VERCEL_ENV)
try {
await auth.connectSnap();
accessToken = await auth.getAccessToken();
Expand Down

0 comments on commit be0650c

Please sign in to comment.