feat(auth): refresh access token on-demand when receiving 401 error

This commit is contained in:
Pablo Lara committed 2024-10-05 14:29:41 +02:00
1 parent 735f830251
commit ff74edcc04
10 files changed
+152 -87

No files matched your search

-5
View File
@@ -1,4 +1,3 @@
import { JwtPayload } from "jwt-decode";
import { SVGProps } from "react";
export type IconSvgProps = SVGProps<SVGSVGElement> & {
@@ -31,10 +30,6 @@ export interface SearchParamsProps {
[key: string]: string | string[] | undefined;
}
export interface CustomJwtPayload extends JwtPayload {
user_id: string;
tenant_id: string;
}
export interface ProviderProps {
id: string;
type: "providers";