MONGOC_OIDC_CR...ITH_EXPIRES_IN(3)
okay bestie, welcome to the libmongoc man page for mongoc_oidc_credential_new_with_expires_in(3) β this one is all about handing the driver an OIDC access token plus an expiry duration, and honestly? slay. π
β¨ SYNOPSIS β¨
mongoc_oidc_credential_t *
mongoc_oidc_credential_new_with_expires_in (const char *access_token, int64_t expires_in)
Create a new mongoc_oidc_credential_t object which stores a copy of the provided OIDC access token and its expiry duration β in milliseconds, bestie. π°οΈ
The expiry duration gets evaluated relative to the value returned by System Clock immediately after the callback function has returned. No cap. β¨
Want an infinite expiry duration instead? Use mongoc_oidc_credential_new(). Periodt. π
π¨ WARNING π¨
β οΈ access_token is NOT directly validated by the driver. Like, the driver is not doing a vibe check on that token β do not expect it to catch anything for you. π«£
π PARAMETERS π
access_tokenβ an OIDC access token. Must not beNULL. π«expires_inβ a non-negative integer. No negativity allowed, bestie. π
π RETURNS π
A new mongoc_oidc_credential_t that must be freed with mongoc_oidc_credential_destroy(), or NULL when an invalid argument was given. That's the whole return vibe. π«Ά
π SEE ALSO π
mongoc_oidc_credential_tβ the credential type this function makes. Go read up, iykyk. π
βοΈ AUTHOR βοΈ
MongoDB, Inc
Β©οΈ COPYRIGHT Β©οΈ
2009-present, MongoDB, Inc.
okay bye bestie β this page is from libmongoc version 2.5.6, dated Oct 09, 202. Mwah ππ
π¦ 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