-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mava customer support #1734
base: dev
Are you sure you want to change the base?
Mava customer support #1734
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,17 @@ | |
name="description" | ||
content="Kleros is a decentralized, blockchain-based dispute resolution platform that offers fast and affordable arbitration for various type of dispute. Join the future of dispute resolution with Kleros Court." | ||
/> | ||
<meta | ||
name="keywords" | ||
content="dispute resolution, decentralized arbitration, Kleros, blockchain court" | ||
/> | ||
<meta name="keywords" content="dispute resolution, decentralized arbitration, Kleros, blockchain court" /> | ||
<link rel="shortcut icon" type="image/svg+xml" href="./favicon.ico" /> | ||
<title>Kleros · Court</title> | ||
<script | ||
defer | ||
src="https://widget.mava.app" | ||
widget-version="v2" | ||
id="MavaWebChat" | ||
enable-sdk="true" | ||
data-token="1fea31aa0b93836faca36269f324468e08cc26f0298f8d8e6c5b089d0d58eb1c" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security concern: Exposed API token The Mava token is currently exposed in the HTML source, making it visible to anyone who views the page source. If this token provides access to sensitive operations or customer data, it should be handled more securely. Consider:
Would you like assistance in implementing a more secure token handling solution? 🧰 Tools🪛 Gitleaks19-19: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) |
||
></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add type safety for window.Mava integration.
The code assumes
window.Mava
is globally available without proper TypeScript declarations. This could lead to runtime errors.Add a type declaration file (e.g.,
mava.d.ts
):Add error handling for Mava initialization.
The Mava integration lacks error handling which could cause silent failures.
Consider wrapping the Mava calls in a try-catch:
📝 Committable suggestion
🛠️ Refactor suggestion
Optimize Mava initialization.
Currently, Mava is initialized on every user fetch, which might be inefficient.
Consider moving the initialization to a more appropriate lifecycle:
📝 Committable suggestion