Login issues - cache for pro user login

Hi everyone,

I’m running into a recurring issue with the Needle Engine login system. The editor keeps logging me out unexpectedly, and it happens multiple times a day (a lot). Whenever the Needle authentication server or Cloudflare has a hiccup, my Unity project immediately loses access to the Needle account and I’m forced to re-authenticate.

This has a pretty big impact on workflow:

  • Unity shows the “Needle Engine – No Commercial License” header even though I’m logged in.

  • The login panel gets stuck on “Getting user information…”.

  • Trying to log in opens a browser tab which then fails with a Cloudflare 500 Internal Server Error.

  • Because authentication is required for project generation and export, this effectively blocks development until their server is up again.

Request / Suggestion

It would help a lot if Needle Engine cached the login token locally for at least 24 hours (or ideally longer), so short outages don’t interrupt the editor. This would let developers continue working even if the auth server temporarily goes down.

Environment

  • Unity (latest)

  • Needle Engine package via npm

  • Region: EU (Amsterdam Cloudflare node seems involved in the error)

  • Issue repeats several times a day

Currently it’s not workable.

I’m sorry, I couldn’t find a response but notified the team :exploding_head:

Hello Stefan,

thanks for reporting - we’ll look into it. Normally the token is stored locally and only refreshed periodically/when necessary. It might be possible that refreshing fails/failed due to an outage (Cloudflare is reporting some issues at the moment).

Is this an issue you’ve experienced just now/today?

Do you think you could send a bugreport using the Needle Engine menu item? It contains logs that might be helpful in understanding what’s happening here.

I was investigating it a bit further… http://localhost:8424/api/user was down, probably crashed. Restarted it with npx needle-cloud@version-1 start-server
But then when i try to “Login“ again, i get a:
Internal server error Error code 500

Visit cloudflare.com for more information.

2025-11-18 12:41:07 UTC

And about the caching, the authentication seems to run on every script recompile?

I’ll send a bug report also through the interface, if that still works.

The local server does also automatically restart if you’re using Unity with Needle Engine and it’s not running.

Authentication doesn’t run on every script recompile but it talks to the license server to get your auth information. If there’s an issue which causes the server to fail (if that’s what’s happening) Unity doesnt see your account information - hence falls back to the basic license.

Thanks for your patience - I haven’t received any report yet, does that mean it’s not working for you? If the automatic upload doesnt work you can try to send the ZIP via DM/Email if that’s possible

It eems like a global problem at Cloudflare unfortunately - not even https://npmjs.com loads for me right now. Again sorry for the inconvenience - still looking into this

CloudFlare is up, everything is working again. Thanks for the feedback.

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.