@ts-core/oauth 3.0.26 → 3.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ma/MaAuth.d.ts +0 -1
- package/cjs/ma/MaAuth.js +1 -5
- package/esm/ma/MaAuth.d.ts +0 -1
- package/esm/ma/MaAuth.js +1 -5
- package/package.json +1 -1
package/cjs/ma/MaAuth.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { IOAuthDto, IOAuthToken, OAuthBase } from "../OAuthBase";
|
|
|
3
3
|
import { MaUser } from "./MaUser";
|
|
4
4
|
export declare class MaAuth<T extends MaUser = MaUser> extends OAuthBase<T> {
|
|
5
5
|
constructor(logger: ILogger, applicationId: string, window?: Window);
|
|
6
|
-
protected getUrlParams(): URLSearchParams;
|
|
7
6
|
getPopUpUrl(): string;
|
|
8
7
|
getProfile(token: string): Promise<T>;
|
|
9
8
|
getTokenByCode(dto: IOAuthDto, secret: string): Promise<IOAuthToken>;
|
package/cjs/ma/MaAuth.js
CHANGED
|
@@ -18,11 +18,7 @@ class MaAuth extends OAuthBase_1.OAuthBase {
|
|
|
18
18
|
constructor(logger, applicationId, window) {
|
|
19
19
|
super(logger, applicationId, window);
|
|
20
20
|
this.urlParams.set('scope', 'userinfo');
|
|
21
|
-
|
|
22
|
-
getUrlParams() {
|
|
23
|
-
let item = super.getUrlParams();
|
|
24
|
-
item.append('state', common_1.RandomUtil.randomString(43));
|
|
25
|
-
return item;
|
|
21
|
+
this.urlParams.set('state', common_1.RandomUtil.randomString(43));
|
|
26
22
|
}
|
|
27
23
|
getPopUpUrl() {
|
|
28
24
|
return `https://oauth.mail.ru/login?${this.getUrlParams().toString()}`;
|
package/esm/ma/MaAuth.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { IOAuthDto, IOAuthToken, OAuthBase } from "../OAuthBase";
|
|
|
3
3
|
import { MaUser } from "./MaUser";
|
|
4
4
|
export declare class MaAuth<T extends MaUser = MaUser> extends OAuthBase<T> {
|
|
5
5
|
constructor(logger: ILogger, applicationId: string, window?: Window);
|
|
6
|
-
protected getUrlParams(): URLSearchParams;
|
|
7
6
|
getPopUpUrl(): string;
|
|
8
7
|
getProfile(token: string): Promise<T>;
|
|
9
8
|
getTokenByCode(dto: IOAuthDto, secret: string): Promise<IOAuthToken>;
|
package/esm/ma/MaAuth.js
CHANGED
|
@@ -15,11 +15,7 @@ export class MaAuth extends OAuthBase {
|
|
|
15
15
|
constructor(logger, applicationId, window) {
|
|
16
16
|
super(logger, applicationId, window);
|
|
17
17
|
this.urlParams.set('scope', 'userinfo');
|
|
18
|
-
|
|
19
|
-
getUrlParams() {
|
|
20
|
-
let item = super.getUrlParams();
|
|
21
|
-
item.append('state', RandomUtil.randomString(43));
|
|
22
|
-
return item;
|
|
18
|
+
this.urlParams.set('state', RandomUtil.randomString(43));
|
|
23
19
|
}
|
|
24
20
|
getPopUpUrl() {
|
|
25
21
|
return `https://oauth.mail.ru/login?${this.getUrlParams().toString()}`;
|