@etsoo/appscript 1.5.20 → 1.5.21

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.
@@ -65,7 +65,7 @@ export class AuthApi extends BaseApi {
65
65
  async redirectToLogInUrl() {
66
66
  const url = await this.getLogInUrl();
67
67
  if (url == null) return;
68
- window.location.replace(url);
68
+ globalThis.location.replace(url);
69
69
  }
70
70
 
71
71
  /**
@@ -0,0 +1,24 @@
1
+ /**
2
+ * API refresh token data
3
+ */
4
+ export type ApiRefreshTokenDto = {
5
+ /**
6
+ * Refresh token
7
+ */
8
+ readonly refreshToken: string;
9
+
10
+ /**
11
+ * Access token
12
+ */
13
+ readonly accessToken: string;
14
+
15
+ /**
16
+ * Token type
17
+ */
18
+ readonly tokenType: string;
19
+
20
+ /**
21
+ * Expires in
22
+ */
23
+ readonly expiresIn: number;
24
+ };