Scroll to navigation

MONGOC_OIDC_CREDENTIAL_GET_ACCESS_TOKEN(3) libmongoc MONGOC_OIDC_CREDENTIAL_GET_ACCESS_TOKEN(3)

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.

PARAMETERS

cred: a mongoc_oidc_credential_t.

RETURNS

A string which must not be modified or freed.

LIFECYCLE

The string is only valid for the lifetime of the mongoc_oidc_credential_t object.

SEE ALSO:

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



AUTHOR

MongoDB, Inc

COPYRIGHT

2009-present, MongoDB, Inc.

August 14, 2025 2.1.0