Refactor logout method from query to mutation.

This commit is contained in:
elweyn 2022-09-22 11:53:54 +02:00
parent f63bfa871a
commit 2d4f88ce84

View File

@ -329,7 +329,7 @@ export class UserResolver {
}
@Authorized([RIGHTS.LOGOUT])
@Query(() => String)
@Mutation(() => String)
async logout(): Promise<boolean> {
// TODO: We dont need this anymore, but might need this in the future in oder to invalidate a valid JWT-Token.
// Furthermore this hook can be useful for tracking user behaviour (did he logout or not? Warn him if he didn't on next login)