oauth-v2-client
Version:
Oauth V2 client based on axios
18 lines (17 loc) • 935 B
TypeScript
import AuthorizationCodeGrantControl from "./grant-controls/AuthorizationCodeGrantControl";
import ClientCredentialsGrantControl from "./grant-controls/ClientCredentialsGrantControl";
import ImplicitGrantControl from "./grant-controls/ImplicitGrantControl";
import PasswordGrantControl from "./grant-controls/PasswordGrantControl";
import AuthorizationCodePKCEGrantControl from "./grant-controls/AuthorizationCodePKCEGrantControl";
import OauthClientConfig from "./interfaces/OauthClientConfig";
import JWTGrantControl from "./grant-controls/JWTGrantControl";
export default class OauthClient {
private config;
implicit: ImplicitGrantControl;
authorizationCode: AuthorizationCodeGrantControl;
authorizationCodePKCE: AuthorizationCodePKCEGrantControl;
password: PasswordGrantControl;
client: ClientCredentialsGrantControl;
jwt: JWTGrantControl;
constructor(config: OauthClientConfig);
}