Refactor: Update moment locale to French in axios.ts and authOptions.ts
This commit is contained in:
parent
7f0573dc0e
commit
76d05af0bb
@ -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;
|
||||||
|
|
||||||
|
@ -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: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user