oauth-v2-client
Version:
Oauth V2 client based on axios
12 lines (11 loc) • 355 B
TypeScript
import { OauthClientConfig, RefreshTokenFuncConfig } from "../interfaces";
/**
* Refresh a token
* @param props function property
*/
export default function refreshToken<T = any>(props: {
params: RefreshTokenFuncConfig<T>;
accessTokenUrl: string;
config: OauthClientConfig;
onSuccess: (data: any) => void;
}): Promise<void>;