Refactor: Update moment locale to French in axios.ts and authOptions.ts

This commit is contained in:
M1000fr 2024-12-13 14:42:34 +01:00
parent 7f0573dc0e
commit 76d05af0bb
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import axios from "axios";
import moment, { Moment } from "moment"; import moment, { Moment } from "moment";
import { getSession } from "next-auth/react"; import { getSession } from "next-auth/react";
moment.locale("fr");
let cachedAccessToken: string | null = null; let cachedAccessToken: string | null = null;
let tokenExpirationAt: Moment | null = null; let tokenExpirationAt: Moment | null = null;

View File

@ -3,6 +3,8 @@ import moment from "moment";
import { AuthOptions, Session } from "next-auth"; import { AuthOptions, Session } from "next-auth";
import { JWT } from "next-auth/jwt"; import { JWT } from "next-auth/jwt";
moment.locale("fr");
export const authOptions: AuthOptions = { export const authOptions: AuthOptions = {
providers: [ providers: [
{ {