const require_services_oAuth2_service = require('../services/oAuth2.service.cjs');

//#region src/utils/oAuth2.ts
const ACCESS_TOKEN_EXPIRES_IN = 3600 * 2;
const getTokenExpireAt = () => new Date(Date.now() + ACCESS_TOKEN_EXPIRES_IN * 1e3);
const authenticateOptions = {
	scope: void 0,
	addAcceptedScopesHeader: void 0,
	addAuthorizedScopesHeader: void 0,
	allowBearerTokensInQueryString: void 0
};
const getAuthModel = () => ({
	getClient: require_services_oAuth2_service.getClient,
	saveToken: require_services_oAuth2_service.saveToken,
	getUserFromClient: require_services_oAuth2_service.getUserFromClient,
	verifyScope: require_services_oAuth2_service.verifyScope,
	getAccessToken: require_services_oAuth2_service.getAccessToken
});

//#endregion
exports.ACCESS_TOKEN_EXPIRES_IN = ACCESS_TOKEN_EXPIRES_IN;
exports.authenticateOptions = authenticateOptions;
exports.getAuthModel = getAuthModel;
exports.getTokenExpireAt = getTokenExpireAt;
//# sourceMappingURL=oAuth2.cjs.map