Spaces:
Sleeping
Sleeping
Download types/next-auth.d.ts from underrate/webdev-service: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/underrate/webdev-service/resolve/main/types/next-auth.d.ts
- Command line
-
hf download hf://spaces/underrate/webdev-service/types/next-auth.d.ts
-
curl -L -o next-auth.d.ts https://huggingface.co/spaces/underrate/webdev-service/resolve/main/types/next-auth.d.ts
550 Bytes
| import NextAuth, { DefaultSession } from "next-auth" | |
| declare module "next-auth" { | |
| /** | |
| * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context | |
| */ | |
| interface Session { | |
| user: { | |
| /** The user's role. */ | |
| role: string | |
| id: string | |
| } & DefaultSession["user"] | |
| } | |
| interface User { | |
| role: string | |
| } | |
| } | |
| declare module "next-auth/jwt" { | |
| interface JWT { | |
| role: string | |
| id: string | |
| } | |
| } | |