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