MONGOC_OIDC_C...GET_EXPIRES_IN(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

πŸ’… 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 β€” a mongoc_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_t
  • mongoc_oidc_credential_new_with_expires_in()
  • mongoc_oidc_callback_fn_t

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” yeah, they made it, we're obsessed, no notes. πŸ’œ


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