1#ifndef SOURCEMETA_CORE_OAUTH_DURATION_H_
2#define SOURCEMETA_CORE_OAUTH_DURATION_H_
4#ifndef SOURCEMETA_CORE_OAUTH_EXPORT
5#include <sourcemeta/core/oauth_export.h>
8#include <sourcemeta/core/json.h>
13namespace sourcemeta::core {
36SOURCEMETA_CORE_OAUTH_EXPORT
38 const JSON::Object::hash_type hash)
39 -> std::optional<std::chrono::seconds>;
std::basic_string_view< Char, CharTraits > StringView
The string view type used by the JSON document.
Definition json_value.h:54
SOURCEMETA_CORE_OAUTH_EXPORT auto oauth_json_seconds_member(const JSON &data, const JSON::StringView name, const JSON::Object::hash_type hash) -> std::optional< std::chrono::seconds >