Join the Webstudio community

Updated 7 months ago

local builder auth issues

At a glance

Community members are having issues with the local auth login for the WebStudio project. They have tried generating keys, creating a GitHub app, and checking the AUTH_SECRET variable, but are still encountering problems. The instructions for setting up a local development environment are generally good, but there seems to be a missing piece of information related to the auth login stage. After some troubleshooting, one community member was able to resolve the issue by creating a .env.development file with the correct AUTH_SECRET value and rebuilding the server. The community members have discussed the issue and one has submitted a pull request to update the project documentation to address this gap.

Useful resources
I'm getting stuck on the local auth login. The instructions on getting a local version running are great (https://docs.webstudio.is/contributing/contributing-for-developers#login-locally). A few of us are stuck at the auth login stage though.

I've tried generating keys and adding them with no luck as well as creating a github app for login. Any chance there's a missing piece of info in the instructions?
O
J
B
15 comments
auth secret set?
first four character of your AUTH_SECRET
Yeah, I've tried that and no luck. I've reached out to a dev company and they are running into the same issue. I'm trying to get them to build something for me.
what file are you using to put that variable?
.env is for prod, dev is .env.development
I was using .env

Should I be creating a .env.development file then?
Attachment
Screenshot_2024-07-12_at_11.22.36_AM.png
This is what I did. Is this wrong?
I tested with 4 characters, that video shows 5. I recorded the wrong thing, but same result.
.env is correct for production only
There was some user error going on. I was watching the server rebuild but I needed to cancel and actually rebuild after I created a .env.development file with my auth secret. Finally got it running, thanks.
Great, please send docs change that fixes this gap
I created a PR on the webstudio-community repo
Hi guys, I finally decided to read through the instructions after having been put off initially because of not being a developer but I got it set up in codespaces but I am having similar issues, i keep getting secret is incorrect.

I created a .env.development file in the root directory. Is that not how its supposed to be?
nevermind, added the secret in the wrong place but now getting a different error (installed it locally via vscode)
got it running on codespaces πŸ™‚
Add a reply
Sign up and join the conversation on Discord