(@GetUserIdFromToken() id: string)
| 84 | return this.authService.login(loginUserInput); |
| 85 | } |
| 86 | |
| 87 | @Query(() => Boolean) |
| 88 | async logout(@GetAuthToken() token: string): Promise<boolean> { |
| 89 | return this.authService.logout(token); |
| 90 | } |
| 91 | |
| 92 | // Guarded, not just decorated: the decorator proves the signature is ours, |