supermemory icon indicating copy to clipboard operation
supermemory copied to clipboard

Password string too short self-host

Open souzadevinicius opened this issue 10 months ago • 2 comments

Hello there.

I'm trying to sign-in using the self-hosted version and I got this error:

node_modules/@hono/vite-dev-server/dist/dev-server.js:78:32)
supermemory:dev:       at responseViaResponseObject (file:///workspace/supermemory/node_modules/@hono/node-server/dist/index.mjs:342:15)
supermemory:dev: }
supermemory:dev: { error: 'Password string too short (min 32 characters required)' }

When I set a 32 length password, it raises an error in workos dialog without any prompt on supermemory project.

souzadevinicius avatar Mar 07 '25 17:03 souzadevinicius

Hi @Dhravya ,

It looks like the issue might be related to the URL generation for the passwordless authentication flow. The error message indicates an "Invalid URL," which suggests that either the magic link or OTP URL might not be properly formatted or constructed. Here are a few things to check:

Ensure that the URL used for magic links or OTPs includes the correct base URL and is well-formed.

Verify that the token expiry and cookie handling are working correctly, and that cookies are being set properly.

Double-check that the generated URL for the passwordless login flow has the proper protocol (e.g., https://) and domain.

If the issue is happening in production, ensure environment variables (like the callback URL or authentication domain) are correctly set.

I would recommend reviewing the logic around URL generation and cookie management, as those seem to be the root cause of the error. Please let me know if you'd like more help debugging!

Thanks!

aryn-03 avatar Apr 15 '25 21:04 aryn-03

WORKOS_COOKIE_PASSWORD add 32 characters to dev.vars

Alle4you avatar Apr 19 '25 17:04 Alle4you

this is no longer valid, updated readme is available on the repo

MaheshtheDev avatar Aug 20 '25 05:08 MaheshtheDev