Skip to content

Commit

Permalink
✨ Add NotLoggedInError
Browse files Browse the repository at this point in the history
  • Loading branch information
takker99 committed Jan 4, 2022
1 parent aae0953 commit 098660a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ export interface NotFoundError extends ErrorLike {
export interface NotPrivilegeError extends ErrorLike {
name: "NotPrivilegeError";
}

/** Loginが必要なAPIをloginせずに叩いたときに発生するエラー */
export interface NotLoggedInError extends ErrorLike {
name: "NotLoggedInError";
/** 詳細情報 */ details: {
/** 使用できるログイン方法 */ loginStrategies: (
| "google"
| "github"
| "microsoft"
| "gyazo"
| "email"
| "saml"
| "easy-trial"
)[];
};
}

0 comments on commit 098660a

Please sign in to comment.