-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix : Possible and small Security issue #11
Comments
@hkirat It would be great if you can give your opinion on this and i will work on it accordingly. PS : Thanks a lot for the bounty it was my first earning :) |
Hi @shrutsureja, here's a possible fix for the error:
The 'env' property in the context is an object and does not have a 'get' method, as shown below. Additionally, the 'createFactory' function from Hono is generic, so you can provide the 'Env' struct to make it more type-safe, as shown below. You can also remove the 'await' prefixes, as 'c.env.*' won't return a promise. |
Hi @rajput-hemant thanks for pointing out about the type i include them in the next PR and the error you are facing is also because you might have NOT un-commented the Now if uncomment the
I will include the types in the next PR. |
@rajput-hemant @hkirat I have found a better solution for the KV_namespaces i will make the changes and comment the code well and make a PR tomorrow |
Hi @shrutsureja , sorry about that. I didn't notice the I also noticed a potential typo in your code at line 178 in |
Hi @rajput-hemant Thanks for pointing out about the The In the next PR
|
if the website URL or the deployment URL is exposed to anyone then if that person hits the
deployed_url/twitter-setup
and authorizes the twitter from his or her twitter all the tweets will from then move on that person's twitter so need to add some way to authenticate that it the owner only for that here are a few optionsGET deployed_url/
ordeployed_url/authenticate
page which is simple form with post method which send just the password to thePOST deployed_url/twitter-setup
and it authenticates that its you and then work we can save the password in the environment variablesGET deployed_url/twitter-setup?password=
as a parameter and authenticate it with the environment variable.Originally posted by @shrutsureja in #9 (comment)
The text was updated successfully, but these errors were encountered: