Skip to main content
1-Visitor
November 3, 2016
Solved

[Oauth2] How use refresh token

  • November 3, 2016
  • 2 replies
  • 2028 views

Hey guys,

I implemented a service which get an access token and a refresh token. I can use my access token to access the API I want, but I need to reload manually my service each 3hours to got a new access token. I'm new with that kind of technology and I want to know the best way to implement a service to use my refresh token. Does I need to create a new thing ? a timer things ?


You guys already help me a lot, thanks for everything I hope you could help me again.

Guillaume

Best answer by ttielebein

Yeah, I would use a timer. You can set it to go off every 3 hours on the configuration tab, and then subscribe to it on the thing where you have the service and do whatever you need to do to refresh the token.

Hope this helps!

2 replies

5-Regular Member
November 3, 2016

Yeah, I would use a timer. You can set it to go off every 3 hours on the configuration tab, and then subscribe to it on the thing where you have the service and do whatever you need to do to refresh the token.

Hope this helps!

gbeaumont1-VisitorAuthor
1-Visitor
November 4, 2016

I hope it will works, I'll tell you in three hours

1-Visitor
July 27, 2017

Hello,

Can you post how you did it.

I'am getting the same problem and it would be helpful if you show us how.

Thank you

Amal