mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 23:43:36 +00:00
15 lines
285 B
TypeScript
15 lines
285 B
TypeScript
import * as api from "./base";
|
|
import { TokenResponse } from "./responseTypes";
|
|
|
|
export async function refreshToken(
|
|
abortController?: AbortController,
|
|
): Promise<TokenResponse> {
|
|
const { result } = await api.get(
|
|
{
|
|
url: "/tokens",
|
|
},
|
|
abortController,
|
|
);
|
|
return result;
|
|
}
|