MONGOC_OIDC_C...GET_EXPIRES_IN(3)
π MONGOC_OIDC_CREDENTIAL_GET_EXPIRES_IN(3) β¨
okay so bestie, this one's a little getter from libmongoc (that's the MongoDB C driver, mwah) and it lives in section 3 of the manual, iykyk π
πΈ SYNOPSIS πΈ
const int64_t *
mongoc_oidc_credential_get_expires_in (const mongoc_oidc_credential_t *cred);
So what does it do? It returns the optional expiry duration β in milliseconds, no cap β for the access token that's chillin' inside a mongoc_oidc_credential_t. That's it. That's the whole vibe. π¦
IMPORTANT π¨ β if the value is unset, it gets interpreted as an infinite expiry duration. Like, forever-forever. Not me warning you about that. π Please clock this.
π PARAMETERS π
credβ amongoc_oidc_credential_t. That's the one and only thing you're passing in, bestie. One (1) credential. π«Ά
β RETURNS β
The expiry duration in milliseconds β or NULL when it's unset. Yep, that's your little signal that nobody set an expiry and the token is out here living its infinite-lifespan main character era. π
π¦ LIFECYCLE π¦
okay this part is important so listen up π§ β the int64_t that the pointer points to is only valid for the lifetime of the mongoc_oidc_credential_t object. So do not go stashing that pointer somewhere and acting surprised later. Once the credential's gone, that pointer is giving expired-milk energy. π
π SEE ALSO π
mongoc_oidc_credential_tmongoc_oidc_credential_new_with_expires_in()mongoc_oidc_callback_fn_t
π AUTHOR π
MongoDB, Inc β yeah, they made it, we're obsessed, no notes. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β iconic longevity fr fr.
and that's the whole page, bestie! π§β¨ brought to you by libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and check those expiry durations responsibly. π π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms