Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOAuth2AuthorizationCodeFlow - who is responsible to call refreshAccessToken?
Forum Updated to NodeBB v4.3 + New Features

QOAuth2AuthorizationCodeFlow - who is responsible to call refreshAccessToken?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 129 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    orio
    wrote on last edited by orio
    #1

    Hi,
    my first post .

    using QOAuth2AuthorizationCodeFlow from code examples that i found all over the net.
    using desktop application ,at startup I manually call refreshAccessToken and things are OK.

    what I do not understand is who is responsible to the next calls to refreshAccessToken.
    assuming that the app will be open for long hours...

    never worked with rest / Oauth before , what is the idiomatic way to refresh the tokens?

    shouldn't QOAuth2AuthorizationCodeFlow do it for me? (nothing in the source code showing it)
    should I setup a timer that will connected to refreshAccessToken slot?
    should i wait for failure in api call and then call refreshAccessToken?

    thanks.
    ori

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved