Passing auth to a client from a separate program (launcher)

Hey there,

I’m creating a system where a user signs into a launcher and can manage their account, resources, and generally use the API.

Then the launcher can update and launch the main software client. The client also uses the API and therefore requires authentication.

What would be the best way to go about this? Currently I have the launcher pass the access token to the client at launch, but this is not optimal because there is no way to get another access token when the original expires. And it seems like a hack.

Preferably the user would not have to log in twice :slight_smile:

has anyone ever set up anything similar?

Would it be more responsible to set up a websocket connection between the launcher and client to pass tokens and refreshed tokens?