Skip to content

feat(auth): automatic session refresh#102

Open
D-Heger wants to merge 1 commit intoLovelessCodes:releasefrom
D-Heger:feat/improved-automatic-signin
Open

feat(auth): automatic session refresh#102
D-Heger wants to merge 1 commit intoLovelessCodes:releasefrom
D-Heger:feat/improved-automatic-signin

Conversation

@D-Heger
Copy link
Contributor

@D-Heger D-Heger commented Oct 12, 2025

Summary

  • Launcher now automatically gets a new login session when starting the game, so the user does not need to log in manually.

Changes

  • Automatic session refresh upon game start
  • Ensuring proper permissions to read/write clientsettings
  • Made user-facing errors clearer

Related Issues

  • Fixes issues about sign in reported on discord

Checklist

  • I have linked related issues using #
  • I have updated documentation where appropriate
  • I have verified backward compatibility or noted breaking changes
  • I have run linters/formatters and addressed warnings

Reviewers

Copy link
Owner

@LovelessCodes LovelessCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good, just needs to be usable without signing in to an account.

return useMutation({
...props,
mutationFn: async ({ name, ip, password, installationId, pub }) => {
// Validate that a user is selected before launching
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure sure about them having to select a user, before connecting to a server - Story Forge should be possible to use without signing-in through Story Forge.

invoke("play_game", { options: { installation_id: id, save } }),
mutationFn: ({ id, save }) => {
// Validate that a user is selected before launching
if (!selectedUser) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing as in use-connect-to-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants