Forum Discussion
Hi, see https://apisupport.myob.com/hc/en-us for some relevant articles.
Hi Mike_James
you've pointed me to the apisupport page? not sure what you are referring to by that link..? Iahave seen it and read it.. are you referring to the refresh token timout How long do access tokens & refresh tokens last? – Support for the MYOB family of SME product APIs
I know it is a week but not really the same as
Client Credentials Flow (auth0.com)
or
RFC 6749: The OAuth 2.0 Authorization Framework (rfc-editor.org)
which are really what I am hoping for...
apologies if I have misunderstood...
- Mike_James3 years agoUltimate Cover User
Hi kjm , my response was too brief, but knowing that we (in our app) authorise with user interaction once, and thereafter by storing the refresh token to get a new access token when required, without user interaction, I thought the notes about that process from MYOB would assist you. I note that the refresh token lasts a week, down from a year originally.
I've been away from my office most of the last week, so my apologies in turn if this is not helpful.
- kjm3 years agoTrusted Cover User
I appreciate any help/reply...certainly no need to apologise. :)
I wasnt aware the refresh token was for a week until I followed your link and did a search..lol
It would be great if MYOB could implement either the spec for client credentials flow as per Oauth2 or extend the refresh token to a month perhaps?
Any idea if the MYOB API developers read these forums? would be good to know what the plans are
- The_Doc3 years agoUltimate Cover User
Hi kjm
I was under the impression - and this has been in place since the beginning - that the Access Token lasts 20 minutes - but each time you get an Access Token it updates the Refresh Token for another 7 days.
I have always worked on these parameters and my own VB code assumes this and always works that way.
Correct me if I am wrong but that has been the situation since I started writing and using by own code for at least 2 years.
My original code was written upto 2 years ago but I refreshed the code and it uses, and still uses 7 day expiry.
Regards The Doc
The Doc
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.