MONGOC_OIDC_C...T_ACCESS_TOKEN(3)

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

πŸ’… MONGOC_OIDC_C...T_ACCESS_TOKEN(3) πŸ’…

okay so bestie, welcome to libmongoc section 3 β€” yes, that truncated-looking header is literally the page name (MONGOC_OIDC_C...T_ACCESS_TOKEN), it's giving "my name got cut off in the group chat" energy but it's iconic, we move πŸ’–

This page is all about one tiny little getter that hands you the access token out of an OIDC credential object. Short page, big slay. Let's get into it ✨


✨ SYNOPSIS ✨

const char *
mongoc_oidc_credential_get_access_token (const mongoc_oidc_credential_t *cred);

Return the access token stored in the mongoc_oidc_credential_t object. That's it, that's the whole vibe πŸŽ€


🌸 PARAMETERS 🌸

  • cred β€” a mongoc_oidc_credential_t. literally just hand her the credential and she'll give you the token, no cap 🫢

πŸ¦‹ RETURNS πŸ¦‹

A string which must not be modified or freed. ngl bestie, read that twice β€” do not touch it, do not free it, it is not yours to keep πŸ’€ it's giving "look but don't touch" museum energy.


🧚 LIFECYCLE 🧚

The string is only valid for the lifetime of the mongoc_oidc_credential_t object. so like… when the credential's era ends, the string's era ends too 😭 hold onto it past that point and that's on you, fr fr.

⚠️ warning bestie: the moment your mongoc_oidc_credential_t object goes away, that string goes with it. no zombie pointers, we don't do that here πŸ™ˆ

πŸ‘€ SEE ALSO: πŸ‘€

  • mongoc_oidc_credential_t
  • mongoc_oidc_callback_fn_t
  • mongoc_oidc_credential_new()
  • mongoc_oidc_credential_new_with_expires_in()

go read those next, iykyk, they're all linked up in the same little OIDC friend group 🌈


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


okay that's the whole page, you ate that πŸ“ mwah πŸ’‹

libmongoc, version 2.5.6 β€” dated Oct 09, 2026. go forth and get those tokens, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from