forked from mirrors/iceshrimp
[mastodon-client] Fix long redirect URIs
This commit is contained in:
parent
c053b9a045
commit
2192d5c668
|
@ -0,0 +1,13 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class IncreaseOAuthRedirecturisLength1697246035867 implements MigrationInterface {
|
||||||
|
name = 'IncreaseOAuthRedirecturisLength1697246035867'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(512) array`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(64) array`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -45,7 +45,7 @@ export class OAuthApp {
|
||||||
public scopes: string[];
|
public scopes: string[];
|
||||||
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 64,
|
length: 512,
|
||||||
array: true,
|
array: true,
|
||||||
comment: "The redirect URIs of the OAuth application",
|
comment: "The redirect URIs of the OAuth application",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue