mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 11:50:09 +00:00
10 lines
257 B
TypeScript
10 lines
257 B
TypeScript
import * as api from "./base";
|
|
import type { TokenResponse } from "./responseTypes";
|
|
|
|
export async function getToken(identity: string, secret: string): Promise<TokenResponse> {
|
|
return await api.post({
|
|
url: "/tokens",
|
|
data: { identity, secret },
|
|
});
|
|
}
|