feat(oauth): limited discord server sign-in (#346)

* feat(oauth): limited discord server sign-in

* fix: typo

* style: change undefined to optional

* style: remove conditional operator
This commit is contained in:
Qing Fu
2023-12-01 05:41:06 +08:00
committed by GitHub
parent d9a9523c9a
commit 5f94c7295a
7 changed files with 89 additions and 21 deletions

View File

@@ -7,7 +7,7 @@ export class ErrorPageException extends Error {
*/
constructor(
public readonly key: string = "default",
public readonly redirect: string = "/",
public readonly redirect?: string,
public readonly params?: string[],
) {
super("error");