cleanup: authcontroller with testable methods and tests (#3054)

* cleanup: authcontroller with testable methods and tests

* fix: types

Tested this on zenpacket, seems to all be working
This commit is contained in:
Daniel Salazar
2026-05-10 13:24:17 -07:00
committed by GitHub
parent f7202955ef
commit 3f2c45be26
4 changed files with 6039 additions and 2749 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -318,7 +318,11 @@ export class AppStore extends PuterStore {
*
* Returns the created app row.
*/
async create(fields, { ownerUserId, appOwner = null } = {}) {
async create(
fields,
/** @type {{ownerUserId?: number, appOwner?: number}} */
{ ownerUserId, appOwner = null } = {},
) {
if (typeof ownerUserId !== 'number') {
throw new Error('AppStore.create requires a numeric ownerUserId');
}