mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Save and use user's locale preference
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
import NextAuth from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface User {
|
||||
locale?: string;
|
||||
}
|
||||
|
||||
interface Session {
|
||||
user: User;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "@auth/core/adapters" {
|
||||
interface AdapterUser {
|
||||
locale?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user