This commit is contained in:
2019-10-02 20:19:15 +00:00
parent b87a11f39b
commit 6438605fa0

View File

@@ -184,6 +184,9 @@ namespace qbridge.Controllers
var access_token_expires_in = AccessTokenObject["expires_in"].Value<long>();
//Store the token!!
//Remove any prior tokens with same state if exist (this can happen if person reloads the auth page or navigates backwards in it)
TOKEN_STORE.Remove(state);
//now add it
TOKEN_STORE.Add(state, new QBToken() { realmId = realmId, access_token = access_token, refresh_token = refresh_token, TokenBirthday = DateTime.Now });
return Redirect("/success");
}