This commit is contained in:
@@ -184,6 +184,9 @@ namespace qbridge.Controllers
|
|||||||
var access_token_expires_in = AccessTokenObject["expires_in"].Value<long>();
|
var access_token_expires_in = AccessTokenObject["expires_in"].Value<long>();
|
||||||
|
|
||||||
//Store the token!!
|
//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 });
|
TOKEN_STORE.Add(state, new QBToken() { realmId = realmId, access_token = access_token, refresh_token = refresh_token, TokenBirthday = DateTime.Now });
|
||||||
return Redirect("/success");
|
return Redirect("/success");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user