Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Jul 5, 2024
1 parent f4137a1 commit d697c43
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/hooks/auth-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const AuthHook = () => {
* Uses the RPC client to call the register endpoint parse it with handleEden.
*/
const registerMutation = useMutation({
mutationKey: ["register"],
mutationFn: async (
...args: Parameters<typeof rpc.api.auth.register.post>
) => handleEden(await rpc.api.auth.register.post(...args)),
Expand All @@ -20,7 +19,6 @@ export const AuthHook = () => {
* Uses the RPC client to call the login endpoint and parse it with handleEden.
*/
const loginMutation = useMutation({
mutationKey: ["login"],
mutationFn: async (...args: Parameters<typeof rpc.api.auth.login.post>) =>
handleEden(await rpc.api.auth.login.post(...args)),
});
Expand All @@ -29,7 +27,6 @@ export const AuthHook = () => {
* Uses the RPC client to call the logout endpoint and parse it with handleEden.
*/
const logoutMutation = useMutation({
mutationKey: ["logout"],
mutationFn: async () => handleEden(await rpc.api.auth.logout.get()),
});

Expand Down

0 comments on commit d697c43

Please sign in to comment.