mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
More options for Applications
This commit is contained in:
parent
0bdf559bdc
commit
298c5bceae
|
|
@ -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<APIApplication> {
|
||||
return {
|
||||
name: "",
|
||||
website: null,
|
||||
vapid_key: null,
|
||||
name: this.name,
|
||||
website: this.website,
|
||||
vapid_key: this.vapid_key,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue