跳至内容
从 NextAuth.js v4 迁移?阅读 我们的迁移指南.

lib/graphql/fragments

账户

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";

会话

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

用户

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

验证令牌

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