Skip to content

[Feature Request]Automatically refresh session/token without manual clicking #74

@Experienced-Butter

Description

@Experienced-Butter

Description:
First of all, thank you for creating and maintaining ReAuth! It's a great mod for re-authenticating when the session expires.

Background:
I'm running a Minecraft 1.18.2 Forge (40.2.9) client and playing on a modded server that requires Mojang online-mode=true authentication. I use an auto-reconnect mod (e.g., AutoReconnect) to stay connected, and I also have ReAuth installed to manually re-authenticate when the session token expires.

Current Situation:
Everything works fine except that I have to manually click the "Re-Authenticate" button in ReAuth every few hours (when the token expires). Since I'm AFK most of the time, this manual step breaks my fully automated setup.

Desired Feature:
I would love to see an automatic session refresh feature added to ReAuth. The idea is that ReAuth could either:

Periodically refresh the session token in the background (e.g., every 3–4 hours) before it expires, or

Automatically trigger a refresh when it detects that the current session has become invalid (e.g., when the server kicks with "Invalid session").

This would allow players to stay logged in indefinitely without any manual intervention.

Environment:

Minecraft Version: 1.18.2

Forge Version: 40.2.9

ReAuth Version: 4.0.7

Additional Context:
I'm aware that the mod AuthMe (the original project) has a SessionUtils.setUser method that can replace the session seamlessly. Perhaps similar logic could be used to automatically apply a refreshed token. I'd be happy to help test if needed.

Thank you for considering this feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions