Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add new endpoint for check password

kruzhambus0ba59ea15df7
diff --git a/src/api/index.ts b/src/api/index.ts
index bebc4387b..973885f13 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -984,3 +984,16 @@ export const getUserFlow = (
? error.response.data
: error.response.data.message
})
+
+export const checkPassword = (pid: string, password: string) =>
+ api
+ .get(`project/password/${pid}`, {
+ data: {
+ password,
+ },
+ })
+ .then((response): Boolean => response.data)
+ .catch((error) => {
+ debug('%s', error)
+ throw error.response.data
+ })