hi everyone, for now i can’t renew my oAuth2 token...
# suitetalkapi
h
hi everyone, for now i can’t renew my oAuth2 token, any issue?
a
@Hung For some reason Netsuite's OAuth 2.0 implementation is extremely non-standard. Once you get a refresh token it exists for 7 days and then it expires with no way of getting a new one outside going through the entire flow again unfortunately. I searched far and wide for a good solution to this but the only thing I could find was using the TBA auth flow (their version of OAuth v1). But TBA is also, frankly, terrible as well. I wish I had a good answer for you but the docs for both TBA and OAuth might as well not exist because they are missing so much about the implementations. To be honest we will most likely need to wait until they fix their implementation of OAuth 2.0. I can see not providing a refresh token for an Administrator, but not at all is just...yeah. If you find away around their OAuth 2.0 issues that doesn't involve constantly working with tons of certificates please please let me know, I've been programming for years and have ever been closer to constant panic attacks than attempting to integrate with Netsuite.
h
thanks for your support so much @Alex, If there’s anything new I’ll let you know