@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
38 lines (37 loc) • 1.2 kB
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: Object.getOwnPropertyDescriptor(all, name).get
});
}
_export(exports, {
get CLIENT_AUTH_TYPE () {
return CLIENT_AUTH_TYPE;
},
get CLIENT_TOKEN_EXPIRATION_TIME () {
return CLIENT_TOKEN_EXPIRATION_TIME;
},
get CLIENT_TOKEN_EXPIRED_ERROR () {
return CLIENT_TOKEN_EXPIRED_ERROR;
},
get CLIENT_TOKEN_RENEW_TIME () {
return CLIENT_TOKEN_RENEW_TIME;
}
});
var CLIENT_AUTH_TYPE = /*#__PURE__*/ function(CLIENT_AUTH_TYPE) {
CLIENT_AUTH_TYPE["COOKIE"] = "cookie";
CLIENT_AUTH_TYPE["TOKEN"] = "token";
return CLIENT_AUTH_TYPE;
}({});
const CLIENT_TOKEN_EXPIRATION_TIME = '120d';
const CLIENT_TOKEN_RENEW_TIME = '60d';
const CLIENT_TOKEN_EXPIRED_ERROR = 'Client token is expired';
//# sourceMappingURL=auth.js.map