aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/oauth/oauth-token.ts
Commit message (Collapse)AuthorAgeFilesLines
* Migrate server to ESMChocobozzz2023-08-111-220/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sorry for the very big commit that may lead to git log issues and merge conflicts, but it's a major step forward: * Server can be faster at startup because imports() are async and we can easily lazy import big modules * Angular doesn't seem to support ES import (with .js extension), so we had to correctly organize peertube into a monorepo: * Use yarn workspace feature * Use typescript reference projects for dependencies * Shared projects have been moved into "packages", each one is now a node module (with a dedicated package.json/tsconfig.json) * server/tools have been moved into apps/ and is now a dedicated app bundled and published on NPM so users don't have to build peertube cli tools manually * server/tests have been moved into packages/ so we don't compile them every time we want to run the server * Use isolatedModule option: * Had to move from const enum to const (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums) * Had to explictely specify "type" imports when used in decorators * Prefer tsx (that uses esbuild under the hood) instead of ts-node to load typescript files (tests with mocha or scripts): * To reduce test complexity as esbuild doesn't support decorator metadata, we only test server files that do not import server models * We still build tests files into js files for a faster CI * Remove unmaintained peertube CLI import script * Removed some barrels to speed up execution (less imports)
* Move typescript utils in its own directoryChocobozzz2021-12-161-1/+1
|
* Stricter models typingChocobozzz2021-05-121-1/+2
|
* Cleanup models directory organizationChocobozzz2021-05-111-2/+2
|
* Refactor auth flowChocobozzz2021-03-241-5/+6
| | | | | Reimplement some node-oauth2-server methods to remove hacky code needed by our external login workflow
* Upgrade sequelize to v6Chocobozzz2020-12-091-9/+8
|
* Split types and typingsChocobozzz2020-06-181-1/+1
|
* Fix refresh tokenChocobozzz2020-05-071-3/+1
|
* Add ability for auth plugins to hook tokens validityChocobozzz2020-05-041-22/+33
|
* Support logout and add id and pass testsChocobozzz2020-05-041-0/+3
|
* Move to eslintcontainChocobozzz2020-02-031-2/+2
|
* Stronger model typingsChocobozzz2019-08-191-10/+9
|
* Upgrade sequelizeChocobozzz2019-04-241-10/+12
|
* Update sequelizeChocobozzz2019-04-241-1/+1
|
* Cleanup tests importsChocobozzz2018-11-191-2/+2
|
* Check activities hostChocobozzz2018-11-141-1/+1
|
* Cache user tokenChocobozzz2018-09-201-1/+20
|
* Limit associations fetch when loading tokenChocobozzz2018-09-201-8/+18
|
* Implement user blocking on server sideChocobozzz2018-08-081-3/+5
|
* expliciting type checks and predicates (server only)Rigel Kent2018-07-251-3/+6
|
* Fix error loggingChocobozzz2018-03-261-1/+1
|
* Destroy user token when changing its roleChocobozzz2018-01-231-0/+10
|
* Propagate old comment on new followChocobozzz2017-12-281-1/+1
|
* Use sequelize scopesChocobozzz2017-12-141-30/+29
|
* Move models to typescript-sequelizeChocobozzz2017-12-131-130/+129
|
* Cleanup modelsChocobozzz2017-11-271-20/+2
|
* Remove references to authorChocobozzz2017-11-271-2/+2
|
* Add video channelsChocobozzz2017-10-261-2/+22
|
* Add previews cache system between podsChocobozzz2017-07-121-2/+2
|
* Remove "function" in favor of () => {}Chocobozzz2017-07-111-18/+21
|
* Fix error loggingChocobozzz2017-07-071-1/+1
|
* Move to promisesChocobozzz2017-07-051-3/+2
| | | | Closes https://github.com/Chocobozzz/PeerTube/issues/74
* Reorganize model filesChocobozzz2017-06-161-0/+160