Refresh token becames Invalid

Hello! I have some technical issue. Please help me resolve my problem.
I got refresh token via API. But in some period it becames invalid (less then 24 hours).
But when I got it "expiries_refresh" was 1209600.
Can you tell me all possible reasons for this?
Maybe it's some individual settings have CRM. Because I use custom value for 'platform' field.
And now I have no idea what the problem. Please help me.

Regards, Vladimir

Parents Reply
  • Vladimir,

    The blog post probably only indirectly covers the subject.

    You should check:

    • Do PHP sessions last long enough? If not why? Do you use file system or memcached or redis or what? If memcached, see if evictions can terminate earlier the session?
    • Do you have any php errors or sugarcrm messages (eg: change of client ip address that terminates the session, or same user logging in from multiple devices)?

    If the PHP sessions lasts long enough (for one reason or another) there should be no reason why the token should expire earlier

    --

    Enrico Simonetti

    Sugar veteran (from 2007)

    www.naonis.tech


    Feel free to reach out for consulting regarding:

    • API Integration and Automation Services
    • Sugar Architecture
    • Sugar Performance Optimisation
    • Sugar Consulting, Best Practices and Technical Training
    • AWS and Sugar Technical Help
    • CTO-as-a-service
    • Solutions-as-a-service
    • and more!

    All active SugarCRM certifications

    Actively working remotely with customers based in APAC and in the United States

Children