MONGOC_OIDC_C...T_ACCESS_TOKEN(3)
π 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β amongoc_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_tmongoc_oidc_callback_fn_tmongoc_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
π COPYRIGHT π
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
- 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