Merge branch 'ali' of gitea.fishrungames.com:Transparency/kgroad-frontend2 into ali

This commit is contained in:
Vladislav Khorev committed 2024-04-10 20:26:17 +00:00
commit b885c9c9bc
14 files changed
+255 -30

No files matched your search

-12
View File
@@ -6,18 +6,6 @@ import { apiInstance } from "./apiConfig";
import { IRefresh, ITokens } from "../types/token-type";
import GoogleProvider from "next-auth/providers/google";
const verifyToken = async (access_token: string) => {
const res = await apiInstance.post("/token/verify/", {
token: access_token,
});
if ([200, 201].includes(res.status)) {
return true;
}
return false;
};
const refreshToken = async (token: JWT): Promise<JWT> => {
const UTC = new Date();
+1 -1
View File
@@ -1,7 +1,7 @@
import { createSharedPathnamesNavigation } from "next-intl/navigation";
export const locales = ["en", "ru", "kg"] as const;
export const localePrefix = "always"; // Default
export const localePrefix = "always";
export const { Link, redirect, usePathname, useRouter } =
createSharedPathnamesNavigation({ locales, localePrefix });