twitcher icon indicating copy to clipboard operation
twitcher copied to clipboard

Missing Client ID and Client Secret when Exporting

Open eumario opened this issue 6 months ago • 3 comments

Affected Version: 1.2

Problem: When running Twitcher in the Editor for a project, everything works as expected. However, when exporting and distributing the project to other people, the project fails to load the Client ID and Client Secret.

Cause: When looking through the problem, it comes down to the client id and secret being stored in the user:// folder, which is not bound together with the exported game, causing issues with not being able to find the information needed.

Possible Solution(s): The Client ID and Secret can be written to the res:// folder as a configuration file, that needs to be included in the exported project. Currently, it's being stored as a Godot encrypted data file, but could easily be stored in a Custom Resource, with the secret being encrypted and stored a PackedByteArray in the resource file, keeping the encryption so the security of the client id and secret is not exposed.

eumario avatar Aug 24 '24 15:08 eumario