refactor(typing): extend nuxt-auth's sessionData type

This commit is contained in:
parent 66cfee819d
commit 98d93f9178
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

9
typings/sessionData.ts Normal file

@ -0,0 +1,9 @@
import type { SessionData } from "#auth";
import { IUser } from "~/models/user";
declare module "#auth" {
export interface SessionData {
token?: string;
user?: IUser;
}
}