File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
model-client/src/jvmMain/kotlin/org/modelix/model/oauth Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ actual class ModelixAuthClient {
78
78
}
79
79
80
80
suspend fun getAndMaybeRefreshTokens (): Credential ? {
81
- return getTokens() ?.refreshIfExpired()
81
+ return lastCredentials ?.refreshIfExpired()
82
82
}
83
83
84
84
suspend fun refreshTokensOrReauthorize (config : OAuthConfig ): Credential ? {
85
- return getTokens() ?.alwaysRefresh() ? : authorize(config)
85
+ return lastCredentials ?.alwaysRefresh() ? : authorize(config)
86
86
}
87
87
88
88
suspend fun authorize (config : OAuthConfig ): Credential ? {
@@ -114,6 +114,7 @@ actual class ModelixAuthClient {
114
114
return @withContext tokens
115
115
} catch (ex: SocketException ) {
116
116
LOG .info(" Port $port already in use. Trying next one." )
117
+ LOG .debug(ex)
117
118
}
118
119
}
119
120
throw IllegalStateException (" Couldn't find an available port for the redirect URL" )
You can’t perform that action at this time.
0 commit comments