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 6998e01 commit 7bc64f4Copy full SHA for 7bc64f4
src/flb_oauth2.c
@@ -390,6 +390,8 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
390
flb_info("[oauth2] access token from '%s:%s' retrieved",
391
ctx->host, ctx->port);
392
flb_http_client_destroy(c);
393
+ ctx->issued = time(NULL);
394
+ ctx->expires = ctx->issued + ctx->expires_in;
395
return ctx->access_token;
396
}
397
0 commit comments