cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

[Oauth2] How use refresh token

gbeaumont
1-Newbie

[Oauth2] How use refresh token

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

1 ACCEPTED SOLUTION

Accepted Solutions

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!

View solution in original post

3 REPLIES 3

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!

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

atahri
4-Participant
(To:gbeaumont)

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

Top Tags