Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
lib
graphql
Fragments

lib/graphql/fragments

Account

const Account: "\n  fragment AccountFragment on Account {\n    id\n    type\n    provider\n    providerAccountId\n    expires_at\n    token_type\n    scope\n    access_token\n    refresh_token\n    id_token\n    session_state\n  }\n";

Session

const Session: "\n  fragment SessionFragment on Session {\n    expires\n    id\n    sessionToken\n  }\n";

User

const User: "\n  fragment UserFragment on User {\n    email\n    id\n    image\n    name\n    emailVerified\n  }\n";

VerificationToken

const VerificationToken: "\n  fragment VerificationTokenFragment on VerificationToken {\n    identifier\n    token\n    expires\n  }\n";
Auth.js © Balázs Orbán and Team - 2024