refactor: update to nuxt-graphql 0.5.x

This commit is contained in:
2026-01-20 10:09:44 -05:00
parent 684e2fa1e9
commit e383255e73
14 changed files with 973 additions and 2113 deletions

View File

@@ -2,10 +2,11 @@ import type { H3Event } from "h3";
import { GraphQLClient } from "graphql-request";
import { jwtDecode } from "jwt-decode";
import type { User } from "#auth-utils";
import { type AuthUserFragment, type AuthLoginMutation, AuthRefreshTokenDocument } from "#graphql/typed-documents";
import type { AuthUserFragment } from "#graphql/fragments";
import { AuthRefreshTokenDocument, type AuthLoginResult } from "#graphql/operations";
// Handle login result and store user session
export async function handleLogin(event: H3Event, loginData: AuthLoginMutation) {
export async function handleLogin(event: H3Event, loginData: AuthLoginResult) {
if (!loginData?.login) {
return;
}