You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 10, 2020. It is now read-only.
For instance; the end-user has done his tasks and logs out the web app. After 10 min, he logs in back to the web app and wants to export another 2 invoices into Xero.
The system shouldn't redirect the page through Xero for the establishment, the system should let the user to do his task .
However, I cannot initialise the connection with Xero because my web app throws me an error for the request token etc...
Here is how i try to re-initialise the connection - However, it doesn't work.
AccessToken accessToken = new AccessToken();
accessToken.Token = "xxx";
accessToken.TokenSecret = "xxxx";
IOAuthSession session = ServiceProvider.GetCurrentSession();
var newAccessToken = session.RenewAccessToken(accessToken, accessToken.SessionHandle);
var repository = ServiceProvider.GetCurrentRepository();
// Get the organisation name from the api
var currentOrganisation = repository.Organisation;
Could you please help me out in regards?
Thank you a lot
Activity