@usync/oauth2 0.1.5 → 0.1.6
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/dist/index.js +3 -6
- package/dist/providers/dropbox.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -120,8 +120,7 @@ var d = class {
|
|
|
120
120
|
status: r.status,
|
|
121
121
|
data: a
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
return this._updateRefreshToken({
|
|
123
|
+
return a.refresh_token && this._updateRefreshToken({
|
|
125
124
|
token: a.refresh_token,
|
|
126
125
|
scope: a.scope
|
|
127
126
|
}), this._updateAccessToken({
|
|
@@ -212,8 +211,7 @@ var d = class {
|
|
|
212
211
|
status: r.status,
|
|
213
212
|
data: a
|
|
214
213
|
};
|
|
215
|
-
if (
|
|
216
|
-
if (this._updateRefreshToken({
|
|
214
|
+
if (a.refresh_token && this._updateRefreshToken({
|
|
217
215
|
token: a.refresh_token,
|
|
218
216
|
scope: a.scope
|
|
219
217
|
}), this._updateAccessToken({
|
|
@@ -307,8 +305,7 @@ var d = class {
|
|
|
307
305
|
status: r.status,
|
|
308
306
|
data: a
|
|
309
307
|
};
|
|
310
|
-
if (
|
|
311
|
-
if (this._updateRefreshToken({
|
|
308
|
+
if (a.refresh_token || this._updateRefreshToken({
|
|
312
309
|
token: a.refresh_token,
|
|
313
310
|
scope: a.scope
|
|
314
311
|
}), this._updateAccessToken({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OAuth2Authorizer } from "./base.ts";
|
|
2
1
|
import type { IdTokenClaims } from "../types.ts";
|
|
2
|
+
import { OAuth2Authorizer } from "./base.ts";
|
|
3
3
|
export declare class DropboxAuthorizer extends OAuth2Authorizer {
|
|
4
4
|
/**
|
|
5
5
|
* Ref: https://www.dropbox.com/developers/documentation/http/documentation
|