mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #63898 [hellojs] Add optional base64_state to .init definition by @arushi364
This commit is contained in:
committed by
GitHub
parent
276d95e430
commit
bb353b3843
@@ -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();
|
||||
|
||||
1
types/hellojs/index.d.ts
vendored
1
types/hellojs/index.d.ts
vendored
@@ -143,6 +143,7 @@ declare namespace hello {
|
||||
interface HelloJSOAuthDef {
|
||||
version: string | number;
|
||||
auth?: string | undefined;
|
||||
base64_state?: boolean | undefined;
|
||||
}
|
||||
|
||||
interface HelloJSOAuth2Def extends HelloJSOAuthDef {
|
||||
|
||||
Reference in New Issue
Block a user