Provided by: libmongoc-doc_2.2.1-1_all bug

SYNOPSIS

          mongoc_oidc_credential_t *
          mongoc_oidc_credential_new (const char *access_token)

       Create  a  new  mongoc_oidc_credential_t  <> object which stores a copy of the provided OIDC access token
       with an infinite expiry duration.

       To set a finite expiry duration, use mongoc_oidc_credential_new_with_expires_in() <>.

       Warning:
          access_token is NOT directly validated by the driver.

PARAMETERS

access_token: an OIDC access token. Must not be NULL.

RETURNS

       A new mongoc_oidc_credential_t <> that must be freed with mongoc_oidc_credential_destroy()  <>,  or  NULL
       when an invalid argument was given.

       See also:

          • mongoc_oidc_credential_t <>

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025                     MONGOC_OIDC_CREDENTIAL_NEW(3)