File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/main/kotlin/com/adamratzman/spotify Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ repositories {
29
29
jcenter()
30
30
}
31
31
32
- compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.06 '
32
+ compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.07 '
33
33
```
34
34
35
35
To use the latest snapshot instead, you must add the Jitpack repository as well
@@ -51,7 +51,7 @@ dependencies {
51
51
<dependency>
52
52
<groupId>com.adamratzman</groupId>
53
53
<artifactId>spotify-api-kotlin</artifactId>
54
- <version>2.3.06 </version>
54
+ <version>2.3.07 </version>
55
55
</dependency>
56
56
57
57
<repository>
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ apply plugin: 'kotlin'
22
22
apply plugin : ' org.jetbrains.dokka'
23
23
24
24
group ' com.adamratzman'
25
- version ' 2.3.06 '
25
+ version ' 2.3.07 '
26
26
27
27
archivesBaseName = ' spotify-api-kotlin'
28
28
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ abstract class SpotifyAPI internal constructor(
171
171
* @return [TokenValidityResponse] containing whether this token is valid, and if not, an Exception explaining why
172
172
*/
173
173
fun isTokenValid (makeTestRequest : Boolean = true): TokenValidityResponse {
174
- if (! token.shouldRefresh()) return TokenValidityResponse (false , SpotifyException (" Token expired" ))
174
+ if (token.shouldRefresh()) return TokenValidityResponse (false , SpotifyException (" Token needs to be refreshed (is it expired?) " ))
175
175
if (! makeTestRequest) return TokenValidityResponse (true , null )
176
176
177
177
return try {
You can’t perform that action at this time.
0 commit comments