🤖 Merge PR #63898 [hellojs] Add optional base64_state to .init definition by @arushi364

This commit is contained in:
Arushi Srivastava
2023-01-13 10:35:37 -08:00
committed by GitHub
parent 276d95e430
commit bb353b3843
2 changed files with 12 additions and 0 deletions

View File

@@ -163,6 +163,17 @@ hello.init({
windows: '000000004403AD10',
});
hello.init({
yahoo: {
oauth: {
version: 2,
auth: 'https://api.login.yahoo.com/oauth2/request_auth',
grant: 'https://api.login.yahoo.com/oauth2/get_token',
base64_state: true,
},
}
});
hello('facebook').login();
hello('facebook').logout();

View File

@@ -143,6 +143,7 @@ declare namespace hello {
interface HelloJSOAuthDef {
version: string | number;
auth?: string | undefined;
base64_state?: boolean | undefined;
}
interface HelloJSOAuth2Def extends HelloJSOAuthDef {