gsaslis / radicle-ci-broker

A placeholder project to use for issue tracking
0 stars 0 forks source link

ConcourseAPI - Check access token expiration and renew #19

Open Archimidis opened 1 year ago

Archimidis commented 1 year ago

Right now, if no access token exists and a method of ConcourseAPI is called that requires it it returns an Err. We must make use of the expires_in field of the Token struct. When that duration has passed we must first renew the token and then proceed with the request.