From 298c5bceaeadca824e481f2d33fe2f2063d5efa3 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 13 Sep 2023 09:11:24 -1000 Subject: [PATCH] More options for Applications --- database/entities/Application.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/database/entities/Application.ts b/database/entities/Application.ts index b70a7562..94200e12 100644 --- a/database/entities/Application.ts +++ b/database/entities/Application.ts @@ -24,12 +24,21 @@ export class Application extends BaseEntity { }) vapid_key!: string | null; + @Column("varchar") + secret!: string; + + @Column("varchar") + scopes = "read"; + + @Column("varchar") + redirect_uris = "urn:ietf:wg:oauth:2.0:oob"; + // eslint-disable-next-line @typescript-eslint/require-await async toAPI(): Promise { return { - name: "", - website: null, - vapid_key: null, + name: this.name, + website: this.website, + vapid_key: this.vapid_key, }; } }