forked from Transparency/kgroad-frontend2
fixed bug with latitude and longitude
This commit is contained in:
1 parent
006a1a7b7b
commit
c54131197e
5 files changed
+6
-19
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user