Scroll to navigation

MONGOC_OIDC_CREDENTIAL_GET_EXPIRES_IN(3) libmongoc MONGOC_OIDC_CREDENTIAL_GET_EXPIRES_IN(3)

SYNOPSIS

const int64_t *
mongoc_oidc_credential_get_expires_in (const mongoc_oidc_credential_t *cred);


Return the optional expiry duration (in milliseconds) for the access token stored in mongoc_oidc_credential_t.

IMPORTANT:

An unset value is interpreted as an infinite expiry duration.


PARAMETERS

cred: a mongoc_oidc_credential_t.

RETURNS

The expiry duration (in milliseconds), or NULL when unset.

LIFECYCLE

The pointed-to int64_t is only valid for the lifetime of the mongoc_oidc_credential_t object.

SEE ALSO:

  • mongoc_oidc_credential_t
  • mongoc_oidc_credential_new_with_expires_in()
  • mongoc_oidc_callback_fn_t



AUTHOR

MongoDB, Inc

COPYRIGHT

2009-present, MongoDB, Inc.

August 14, 2025 2.1.0