mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-21 21:53:12 +01: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 },
|
|
});
|
|
}
|