/
SpotifySession.ts
47 lines (41 loc) · 1.07 KB
/
SpotifySession.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import ApiScope from "./ApiScope";
export default interface SpotifySession {
/**
* The access token of the authenticated user.
* > On Android this will be either the access token or the code depending on the `SpotifyApiConfig.AuthType`
*
* @type {string}
* @memberof SpotifySession
*/
accessToken: string;
/**
* The refresh token.
*
* @type {string}
* @memberof SpotifySession
*/
refreshToken: string;
/**
* The expiration date of the access token.
*
* @type {Date}
* @memberof SpotifySession
*/
expirationDate: string;
/**
* The scope granted. **(iOS Only)**
*
* @type {ApiScope}
* @memberof SpotifySession
*/
scope: ApiScope;
/**
* Check whether the session has expired. YES if expired; NO otherwise.
*
* > Note: The session is considered expired once the current date and time is equal to or greater than the expiration date and time.
*
* @type {boolean}
* @memberof SpotifySession
*/
expired: boolean;
}