ccbikai / Sink

⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
https://Sink.Cool
GNU Affero General Public License v3.0
2.68k stars 1.29k forks source link

A small question about deploying in cloudflare worker with backend login? #44

Open joaine-desion opened 1 month ago

joaine-desion commented 1 month ago

I'm deploying in cloudflare worker, but it's having some issues, after entering the wrong password when logging into the backend, it'll stay on the loading page and the 'Unauthorized' prompt will keep surfacing in the bottom right corner, like what's going on in my picture. Sorry, I'm not sure if this is my own problem? Am I the only one experiencing this? screenshot-1723907583382

ccbikai commented 1 month ago
  1. Check the KV binding
  2. SiteToken cannot consist entirely of digits
joaine-desion commented 1 month ago
  1. 检查KV绑定
  2. SiteToken不能完全由数字组成

I've checked both options and both are fine. The problem is a bit strange, it occurs when I enter the wrong site token after refreshing a few times, and it also occurs when I log into the demo site “https://sink.cool/dashboard/login”, I'm not sure if it's my browser that's the problem, because when I change my browser it works fine, but when I repeat the operation the problem appears again. I apologize that I'm out of town on a business trip and can't use the browser on my home computer to test this, but here's the situation. 微信图片_20240818211205

ccbikai commented 1 month ago

Hello, which browser are you using? I'll check for compatibility

joaine-desion commented 1 month ago

Hello, which browser are you using? I'll check for compatibility

firefox and Quark They all have problems like this Mozilla Firefox 2024_8_20 20_59_09 新标签页 - 夸克 2024_8_20 21_00_33

ccbikai commented 1 month ago

Fixed it, please test again using the demo site

joaine-desion commented 1 month ago

Fixed it, please test again using the demo site

Great, seems to have solved it, just tested it a couple times with no problems