@wix/identity 1.0.5 → 1.0.7
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/build/cjs/src/iam-authentication-v1-authentication.http.js +7 -7
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.js +3 -3
- package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +9 -9
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +18 -12
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js +4 -4
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +76 -65
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +131 -89
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +22 -20
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.http.js +6 -0
- package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +76 -65
- package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +131 -89
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js +10 -8
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,30 +1,48 @@
|
|
|
1
1
|
export interface RefreshToken {
|
|
2
2
|
token?: string;
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
6
|
+
* the authorization process.
|
|
7
|
+
*/
|
|
4
8
|
export interface AuthorizeRequest {
|
|
5
|
-
/**
|
|
6
|
-
responseType?: string;
|
|
7
|
-
/** The ID of the application that asks for authorization. */
|
|
9
|
+
/** client_id is the unique identifier of the client application. */
|
|
8
10
|
clientId?: string;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* response_type specifies the desired authorization grant type.
|
|
13
|
+
* This can be "code" for the authorization code.
|
|
14
|
+
*/
|
|
15
|
+
responseType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* redirect_uri is the URI to which the authorization server will redirect the
|
|
18
|
+
* user-agent after the user grants/denies permission.
|
|
19
|
+
*/
|
|
20
|
+
redirectUri?: string;
|
|
21
|
+
/**
|
|
22
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
23
|
+
* access request.
|
|
24
|
+
*/
|
|
25
|
+
scope?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* An opaque value, used for security purposes. If this request parameter is set
|
|
28
|
+
* in the request, then it is returned to the application as part of the redirect_uri.
|
|
29
|
+
*/
|
|
14
30
|
state?: string;
|
|
15
31
|
/** (Optional) How the result of the authorization request is formatted */
|
|
16
32
|
responseMode?: string | null;
|
|
17
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* code_challenge is the code challenge sent by the client as part of the PKCE
|
|
35
|
+
* process. This field is only used if response_type is "code".
|
|
36
|
+
*/
|
|
18
37
|
codeChallenge?: string | null;
|
|
19
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* code_challenge_method is the code challenge method sent by the client as part
|
|
40
|
+
* of the PKCE process. This field is only used if response_type is "code".
|
|
41
|
+
*/
|
|
20
42
|
codeChallengeMethod?: string | null;
|
|
21
43
|
/** Current client session */
|
|
22
44
|
sessionToken?: string | null;
|
|
23
45
|
}
|
|
24
|
-
export interface Scope {
|
|
25
|
-
/** A list of permissions that the application requires. Empty list means the default list of scopes. */
|
|
26
|
-
ids?: string[];
|
|
27
|
-
}
|
|
28
46
|
export interface RawHttpResponse {
|
|
29
47
|
body?: Uint8Array;
|
|
30
48
|
statusCode?: number | null;
|
|
@@ -34,64 +52,57 @@ export interface HeadersEntry {
|
|
|
34
52
|
key?: string;
|
|
35
53
|
value?: string;
|
|
36
54
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/** Client credentials for authenticating a client */
|
|
62
|
-
clientCredentials?: ClientCredentials;
|
|
63
|
-
/** Granting a pre authenticated token for basic access. */
|
|
64
|
-
preAuthenticated?: PreAuthenticated;
|
|
65
|
-
}
|
|
66
|
-
export interface AuthorizationCode {
|
|
67
|
-
code?: string;
|
|
68
|
-
}
|
|
69
|
-
export interface PKCE {
|
|
70
|
-
authorizationCode?: AuthorizationCode;
|
|
71
|
-
/** PKCE code */
|
|
55
|
+
/**
|
|
56
|
+
* TokenRequest is sent by the client to the authorization server to request an
|
|
57
|
+
* access token.
|
|
58
|
+
*/
|
|
59
|
+
export interface TokenRequest {
|
|
60
|
+
/** The application id that want to obtain an access token. */
|
|
61
|
+
clientId?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* grant_type specifies the grant type being used. supported grant types are:
|
|
64
|
+
* `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`
|
|
65
|
+
*/
|
|
66
|
+
grantType?: string;
|
|
67
|
+
/** Required for `refresh_token` grant type. */
|
|
68
|
+
refreshToken?: string | null;
|
|
69
|
+
/** Required for `client_credentials` grant type. */
|
|
70
|
+
clientSecret?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
|
|
73
|
+
* device authorization response
|
|
74
|
+
*/
|
|
75
|
+
deviceCode?: string | null;
|
|
76
|
+
/** Required for the `authorization_code` grant type. */
|
|
77
|
+
redirectUri?: string | null;
|
|
78
|
+
/** Required for `authorization_code` grant type. */
|
|
72
79
|
code?: string | null;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
deviceCode?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface ClientCredentials {
|
|
78
|
-
}
|
|
79
|
-
export interface PreAuthenticated {
|
|
80
|
-
clientId?: string;
|
|
80
|
+
/** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
|
|
81
|
+
codeVerifier?: string | null;
|
|
81
82
|
}
|
|
82
83
|
export interface TokenResponse {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
|
|
84
|
+
/** The access token issued by the authorization server. */
|
|
85
|
+
accessToken?: string;
|
|
86
|
+
/** The type of the token issued as described in Section 7.1. of the oauth2 rfc. */
|
|
87
|
+
tokenType?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will
|
|
90
|
+
* expire in one hour from the time the response was generated.
|
|
91
|
+
*/
|
|
92
|
+
expiresIn?: number;
|
|
93
|
+
/** The refresh token, which can be used to obtain new access tokens. */
|
|
94
|
+
refreshToken?: string | null;
|
|
95
|
+
/** OPTIONAL, if identical to the scope requested by the client; otherwise, will be sent. */
|
|
96
|
+
scope?: string | null;
|
|
89
97
|
}
|
|
90
98
|
export interface DeviceCodeRequest {
|
|
91
99
|
/** The ID of the application that asks for authorization. */
|
|
92
100
|
clientId?: string;
|
|
93
|
-
/**
|
|
94
|
-
|
|
101
|
+
/**
|
|
102
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
103
|
+
* access request.
|
|
104
|
+
*/
|
|
105
|
+
scope?: string | null;
|
|
95
106
|
}
|
|
96
107
|
export interface DeviceCodeResponse {
|
|
97
108
|
/** is the unique code for the device. When the user goes to the verification_uri in their browser-based device, this code will be bound to their session. */
|
|
@@ -7,30 +7,48 @@ export declare const __debug: {
|
|
|
7
7
|
export interface RefreshToken {
|
|
8
8
|
token?: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
12
|
+
* the authorization process.
|
|
13
|
+
*/
|
|
10
14
|
export interface AuthorizeRequest {
|
|
11
|
-
/**
|
|
12
|
-
responseType?: string;
|
|
13
|
-
/** The ID of the application that asks for authorization. */
|
|
15
|
+
/** client_id is the unique identifier of the client application. */
|
|
14
16
|
clientId?: string;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* response_type specifies the desired authorization grant type.
|
|
19
|
+
* This can be "code" for the authorization code.
|
|
20
|
+
*/
|
|
21
|
+
responseType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* redirect_uri is the URI to which the authorization server will redirect the
|
|
24
|
+
* user-agent after the user grants/denies permission.
|
|
25
|
+
*/
|
|
26
|
+
redirectUri?: string;
|
|
27
|
+
/**
|
|
28
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
29
|
+
* access request.
|
|
30
|
+
*/
|
|
31
|
+
scope?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* An opaque value, used for security purposes. If this request parameter is set
|
|
34
|
+
* in the request, then it is returned to the application as part of the redirect_uri.
|
|
35
|
+
*/
|
|
20
36
|
state?: string;
|
|
21
37
|
/** (Optional) How the result of the authorization request is formatted */
|
|
22
38
|
responseMode?: string | null;
|
|
23
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* code_challenge is the code challenge sent by the client as part of the PKCE
|
|
41
|
+
* process. This field is only used if response_type is "code".
|
|
42
|
+
*/
|
|
24
43
|
codeChallenge?: string | null;
|
|
25
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* code_challenge_method is the code challenge method sent by the client as part
|
|
46
|
+
* of the PKCE process. This field is only used if response_type is "code".
|
|
47
|
+
*/
|
|
26
48
|
codeChallengeMethod?: string | null;
|
|
27
49
|
/** Current client session */
|
|
28
50
|
sessionToken?: string | null;
|
|
29
51
|
}
|
|
30
|
-
export interface Scope {
|
|
31
|
-
/** A list of permissions that the application requires. Empty list means the default list of scopes. */
|
|
32
|
-
ids?: string[];
|
|
33
|
-
}
|
|
34
52
|
export interface RawHttpResponse {
|
|
35
53
|
body?: Uint8Array;
|
|
36
54
|
statusCode?: number | null;
|
|
@@ -40,64 +58,57 @@ export interface HeadersEntry {
|
|
|
40
58
|
key?: string;
|
|
41
59
|
value?: string;
|
|
42
60
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/** Client credentials for authenticating a client */
|
|
68
|
-
clientCredentials?: ClientCredentials;
|
|
69
|
-
/** Granting a pre authenticated token for basic access. */
|
|
70
|
-
preAuthenticated?: PreAuthenticated;
|
|
71
|
-
}
|
|
72
|
-
export interface AuthorizationCode {
|
|
73
|
-
code?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface PKCE {
|
|
76
|
-
authorizationCode?: AuthorizationCode;
|
|
77
|
-
/** PKCE code */
|
|
61
|
+
/**
|
|
62
|
+
* TokenRequest is sent by the client to the authorization server to request an
|
|
63
|
+
* access token.
|
|
64
|
+
*/
|
|
65
|
+
export interface TokenRequest {
|
|
66
|
+
/** The application id that want to obtain an access token. */
|
|
67
|
+
clientId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* grant_type specifies the grant type being used. supported grant types are:
|
|
70
|
+
* `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`
|
|
71
|
+
*/
|
|
72
|
+
grantType?: string;
|
|
73
|
+
/** Required for `refresh_token` grant type. */
|
|
74
|
+
refreshToken?: string | null;
|
|
75
|
+
/** Required for `client_credentials` grant type. */
|
|
76
|
+
clientSecret?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
|
|
79
|
+
* device authorization response
|
|
80
|
+
*/
|
|
81
|
+
deviceCode?: string | null;
|
|
82
|
+
/** Required for the `authorization_code` grant type. */
|
|
83
|
+
redirectUri?: string | null;
|
|
84
|
+
/** Required for `authorization_code` grant type. */
|
|
78
85
|
code?: string | null;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
deviceCode?: string;
|
|
82
|
-
}
|
|
83
|
-
export interface ClientCredentials {
|
|
84
|
-
}
|
|
85
|
-
export interface PreAuthenticated {
|
|
86
|
-
clientId?: string;
|
|
86
|
+
/** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
|
|
87
|
+
codeVerifier?: string | null;
|
|
87
88
|
}
|
|
88
89
|
export interface TokenResponse {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
|
|
90
|
+
/** The access token issued by the authorization server. */
|
|
91
|
+
accessToken?: string;
|
|
92
|
+
/** The type of the token issued as described in Section 7.1. of the oauth2 rfc. */
|
|
93
|
+
tokenType?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will
|
|
96
|
+
* expire in one hour from the time the response was generated.
|
|
97
|
+
*/
|
|
98
|
+
expiresIn?: number;
|
|
99
|
+
/** The refresh token, which can be used to obtain new access tokens. */
|
|
100
|
+
refreshToken?: string | null;
|
|
101
|
+
/** OPTIONAL, if identical to the scope requested by the client; otherwise, will be sent. */
|
|
102
|
+
scope?: string | null;
|
|
95
103
|
}
|
|
96
104
|
export interface DeviceCodeRequest {
|
|
97
105
|
/** The ID of the application that asks for authorization. */
|
|
98
106
|
clientId?: string;
|
|
99
|
-
/**
|
|
100
|
-
|
|
107
|
+
/**
|
|
108
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
109
|
+
* access request.
|
|
110
|
+
*/
|
|
111
|
+
scope?: string | null;
|
|
101
112
|
}
|
|
102
113
|
export interface DeviceCodeResponse {
|
|
103
114
|
/** is the unique code for the device. When the user goes to the verification_uri in their browser-based device, this code will be bound to their session. */
|
|
@@ -134,21 +145,39 @@ export interface RevokeRefreshTokenResponse {
|
|
|
134
145
|
*/
|
|
135
146
|
export declare function authorize(options?: AuthorizeOptions): Promise<RawHttpResponse>;
|
|
136
147
|
export interface AuthorizeOptions {
|
|
137
|
-
/**
|
|
138
|
-
responseType?: string;
|
|
139
|
-
/** The ID of the application that asks for authorization. */
|
|
148
|
+
/** client_id is the unique identifier of the client application. */
|
|
140
149
|
clientId?: string;
|
|
141
|
-
/**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
/**
|
|
151
|
+
* response_type specifies the desired authorization grant type.
|
|
152
|
+
* This can be "code" for the authorization code.
|
|
153
|
+
*/
|
|
154
|
+
responseType?: string;
|
|
155
|
+
/**
|
|
156
|
+
* redirect_uri is the URI to which the authorization server will redirect the
|
|
157
|
+
* user-agent after the user grants/denies permission.
|
|
158
|
+
*/
|
|
159
|
+
redirectUri?: string;
|
|
160
|
+
/**
|
|
161
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
162
|
+
* access request.
|
|
163
|
+
*/
|
|
164
|
+
scope?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* An opaque value, used for security purposes. If this request parameter is set
|
|
167
|
+
* in the request, then it is returned to the application as part of the redirect_uri.
|
|
168
|
+
*/
|
|
146
169
|
state?: string;
|
|
147
170
|
/** (Optional) How the result of the authorization request is formatted */
|
|
148
171
|
responseMode?: string | null;
|
|
149
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* code_challenge is the code challenge sent by the client as part of the PKCE
|
|
174
|
+
* process. This field is only used if response_type is "code".
|
|
175
|
+
*/
|
|
150
176
|
codeChallenge?: string | null;
|
|
151
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* code_challenge_method is the code challenge method sent by the client as part
|
|
179
|
+
* of the PKCE process. This field is only used if response_type is "code".
|
|
180
|
+
*/
|
|
152
181
|
codeChallengeMethod?: string | null;
|
|
153
182
|
/** Current client session */
|
|
154
183
|
sessionToken?: string | null;
|
|
@@ -158,18 +187,28 @@ export interface AuthorizeOptions {
|
|
|
158
187
|
*/
|
|
159
188
|
export declare function token(options?: TokenOptions): Promise<TokenResponse>;
|
|
160
189
|
export interface TokenOptions {
|
|
161
|
-
/**
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
190
|
+
/** The application id that want to obtain an access token. */
|
|
191
|
+
clientId?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
* grant_type specifies the grant type being used. supported grant types are:
|
|
194
|
+
* `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`
|
|
195
|
+
*/
|
|
196
|
+
grantType?: string;
|
|
197
|
+
/** Required for `refresh_token` grant type. */
|
|
198
|
+
refreshToken?: string | null;
|
|
199
|
+
/** Required for `client_credentials` grant type. */
|
|
200
|
+
clientSecret?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
|
|
203
|
+
* device authorization response
|
|
204
|
+
*/
|
|
205
|
+
deviceCode?: string | null;
|
|
206
|
+
/** Required for the `authorization_code` grant type. */
|
|
207
|
+
redirectUri?: string | null;
|
|
208
|
+
/** Required for `authorization_code` grant type. */
|
|
209
|
+
code?: string | null;
|
|
210
|
+
/** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
|
|
211
|
+
codeVerifier?: string | null;
|
|
173
212
|
}
|
|
174
213
|
/**
|
|
175
214
|
* this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
|
|
@@ -180,8 +219,11 @@ export declare function deviceCode(options?: DeviceCodeOptions): Promise<DeviceC
|
|
|
180
219
|
export interface DeviceCodeOptions {
|
|
181
220
|
/** The ID of the application that asks for authorization. */
|
|
182
221
|
clientId?: string;
|
|
183
|
-
/**
|
|
184
|
-
|
|
222
|
+
/**
|
|
223
|
+
* scope is a space-delimited string that specifies the requested scope of the
|
|
224
|
+
* access request.
|
|
225
|
+
*/
|
|
226
|
+
scope?: string | null;
|
|
185
227
|
}
|
|
186
228
|
/**
|
|
187
229
|
* this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
|
|
@@ -39,8 +39,8 @@ export function authorize(options) {
|
|
|
39
39
|
var _a, _b, _c;
|
|
40
40
|
return __awaiter(this, arguments, void 0, function* () {
|
|
41
41
|
const requestTransformation = {
|
|
42
|
-
responseType: '$[0].responseType',
|
|
43
42
|
clientId: '$[0].clientId',
|
|
43
|
+
responseType: '$[0].responseType',
|
|
44
44
|
redirectUri: '$[0].redirectUri',
|
|
45
45
|
scope: '$[0].scope',
|
|
46
46
|
state: '$[0].state',
|
|
@@ -95,12 +95,14 @@ export function token(options) {
|
|
|
95
95
|
var _a, _b, _c;
|
|
96
96
|
return __awaiter(this, arguments, void 0, function* () {
|
|
97
97
|
const requestTransformation = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
deviceCode: '$[0].deviceCode',
|
|
98
|
+
clientId: '$[0].clientId',
|
|
99
|
+
grantType: '$[0].grantType',
|
|
101
100
|
refreshToken: '$[0].refreshToken',
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
clientSecret: '$[0].clientSecret',
|
|
102
|
+
deviceCode: '$[0].deviceCode',
|
|
103
|
+
redirectUri: '$[0].redirectUri',
|
|
104
|
+
code: '$[0].code',
|
|
105
|
+
codeVerifier: '$[0].codeVerifier',
|
|
104
106
|
};
|
|
105
107
|
const responseTransformation = '$';
|
|
106
108
|
// @ts-ignore
|
|
@@ -109,7 +111,7 @@ export function token(options) {
|
|
|
109
111
|
rootSchema: _tokenRequest,
|
|
110
112
|
depSchemas: {},
|
|
111
113
|
fqdnTransformation: {
|
|
112
|
-
paths: [
|
|
114
|
+
paths: [],
|
|
113
115
|
transformation: _fromVeloEntity,
|
|
114
116
|
},
|
|
115
117
|
customTransformation: requestTransformation,
|
|
@@ -118,7 +120,7 @@ export function token(options) {
|
|
|
118
120
|
rootSchema: _tokenResponse,
|
|
119
121
|
depSchemas: {},
|
|
120
122
|
fqdnTransformation: {
|
|
121
|
-
paths: [
|
|
123
|
+
paths: [],
|
|
122
124
|
transformation: _toVeloEntity,
|
|
123
125
|
},
|
|
124
126
|
customTransformation: responseTransformation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-oauth-v1-refresh-token.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,wCAAwC,MAAM,wCAAwC,CAAC;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,wCAAwC,MAAM,wCAAwC,CAAC;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAqJ5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,E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AAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/identity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "ab0bb05d303d8e800f6fe0e97ef7fa31a3e7d0d8799f0f343010f403"
|
|
37
37
|
}
|