- useToken(): {
getFixToken: () => string;
getToken: () => string;
getTokenHeader: (
param?: { config?: AxiosRequestConfig<any>; useFixed?: boolean },
) => AxiosRequestConfig<any>;
setFixToken: (fixToken: string) => void;
setToken: (token: string) => void;
} Returns {
getFixToken: () => string;
getToken: () => string;
getTokenHeader: (
param?: { config?: AxiosRequestConfig<any>; useFixed?: boolean },
) => AxiosRequestConfig<any>;
setFixToken: (fixToken: string) => void;
setToken: (token: string) => void;
}
getFixToken: () => string
getToken: () => string
getTokenHeader: (
param?: { config?: AxiosRequestConfig<any>; useFixed?: boolean },
) => AxiosRequestConfig<any>
setFixToken: (fixToken: string) => void
setToken: (token: string) => void
トークンを取り扱うロジックを生成します。