import { getAccessToken, getClient, getUserFromClient, saveToken, verifyScope } from "../services/oAuth2.service.mjs";

//#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,
	saveToken,
	getUserFromClient,
	verifyScope,
	getAccessToken
});

//#endregion
export { ACCESS_TOKEN_EXPIRES_IN, authenticateOptions, getAuthModel, getTokenExpireAt };
//# sourceMappingURL=oAuth2.mjs.map