Skip to content

Commit 098660a

Browse files
committed
✨ Add NotLoggedInError
1 parent aae0953 commit 098660a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

api/error.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,19 @@ export interface NotFoundError extends ErrorLike {
1818
export interface NotPrivilegeError extends ErrorLike {
1919
name: "NotPrivilegeError";
2020
}
21+
22+
/** Loginが必要なAPIをloginせずに叩いたときに発生するエラー */
23+
export interface NotLoggedInError extends ErrorLike {
24+
name: "NotLoggedInError";
25+
/** 詳細情報 */ details: {
26+
/** 使用できるログイン方法 */ loginStrategies: (
27+
| "google"
28+
| "github"
29+
| "microsoft"
30+
| "gyazo"
31+
| "email"
32+
| "saml"
33+
| "easy-trial"
34+
)[];
35+
};
36+
}

0 commit comments

Comments
 (0)