We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e0bb0 commit 24994e0Copy full SHA for 24994e0
src/flb_oauth2.c
@@ -328,8 +328,8 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
328
329
now = time(NULL);
330
if (ctx->access_token) {
331
- /* validate expired token */
332
- if (ctx->expires < now && flb_sds_len(ctx->access_token) > 0) {
+ /* validate unexpired token */
+ if (ctx->expires > now && flb_sds_len(ctx->access_token) > 0) {
333
return ctx->access_token;
334
}
335
0 commit comments