UNPKG

@hapic/oauth2

Version:

A oauth2 api client based on axios.

12 lines (11 loc) 399 B
import type { AuthorizationHeader } from 'hapic'; import { BaseAPI } from '../base'; import type { BaseAPIContext } from '../type'; export declare class UserInfoAPI extends BaseAPI { constructor(context?: BaseAPIContext); /** * @throws Error * @param header */ get<T extends Record<string, any> = Record<string, any>>(header?: string | AuthorizationHeader): Promise<T>; }