Gitea npm registry unable to publish unscoped packages

Hey!

NPM Package Registry | Gitea Documentation says it supports unscoped npm packages too. I have tested scoped packages and it worked just fine. But publishing unscoped packages results in following error:

🦋  error npm error code ENEEDAUTH
🦋  error npm error need auth This command requires you to be logged in to https://gitea.example.com/api/packages/gnpaone/npm
🦋  error npm error need auth You need to authorize this machine using `npm adduser`
🦋  error npm error A complete log of this run can be found in: /home/gnpaone/.npm/_logs/2025-02-08T13_16_37_714Z-debug-0.log
🦋  error 
🦋  error an error occurred while publishing package: ENEEDAUTH This command requires you to be logged in to https://gitea.example.com/api/packages/gnpaone/npm 
🦋  error You need to authorize this machine using `npm adduser`

My .npmrc for unscoped:

//gitea.example.com/api/packages/gnpaone/npm/:_authToken="***"
registry=https://gitea.example.com/api/packages/gnpaone/npm/
always-auth=true

My .npmrc for scoped (working):

//gitea.example.com/api/packages/gnpaone/npm/:_authToken="***"
@gnpaone:registry=https://gitea.example.com/api/packages/gnpaone/npm/
always-auth=true