(code: string, state: string)
| 111 | } |
| 112 | |
| 113 | async confirmLogin(code: string, state: string): Promise<ApiResult<LoginResponse>> { |
| 114 | return await this.post("/api/confirm_login", { |
| 115 | kind: "json", |
| 116 | body: { |
| 117 | code: code, |
| 118 | state: state, |
| 119 | } |
| 120 | }); |
| 121 | } |
| 122 | |
| 123 | async getUserPremiumSlots(): Promise<ApiResult<PremiumSlot[]>> { |
| 124 | return await this.get("/api/premium_slots"); |