MONGOC_OIDC_CR...ITH_EXPIRES_IN(3)

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

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 be NULL. 🚫
  • 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

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