diff --git a/Troubleshooting.md b/Troubleshooting.md index 25edd01..e33e22a 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -63,6 +63,7 @@ Then to add it back :GenTocRedCarpet * [Error: User not found](#error-user-not-found) * [Error: Missing credentials](#error-missing-credentials) * [Frontier CAPI query failure: /profile (or /market, or /shipyard)](#frontier-capi-query-failure-profile-or-market-or-shipyard) + * [I sync Journals between two or more computers, and have to re-auth on each switch](#i-sync-journals-between-two-or-more-computers-and-have-to-re-auth-on-each-switch) * [Chrome complains after approving on Frontier's site](#chrome-complains-after-approving-on-frontier-39-s-site) * [Third Party Site Plugins (EDSM, EDDB, Inara)](#third-party-site-plugins-edsm-eddb-inara) * [Credentials settings are greyed out](#credentials-settings-are-greyed-out) @@ -642,6 +643,36 @@ Frontier's end. + + + +## I sync Journals between two or more computers, and have to re-auth on each switch +Ref: [#1632: EDMC needs to re-authenticate every time I switch computers](https://github.com/EDCD/EDMarketConnector/issues/1632) + +For a single game account combined with a single 'Client Id' only *one* +authorisation can be active at a time. + +What this means in practice is that if +you authenticate on Computer A for Account A with respect to Client A (i.e. +EDMC), then EDMC stores the 'Refresh Token' for future use, and refreshes it +to the new value when used. + +If you then authenticate, for Account A with respect to the same ClientA, but +on Computer B, then you will get a *different* Refresh Token, and the one that +Computer A has stored will now be invalid. + +Result: Each time you (re-)authenticate on one computer you will be +invalidating tthe other computer's authorization, and the next time it needs +to obtain a new Access Token you will be forced to re-authenticate. + +The only workaround for this would be to synchronise the Registry entry: + + Computer\HKEY_CURRENT_USER\SOFTWARE\Marginal\EDMarketConnector\fdev_apikeys + +between the two computers. + + +