Skip to content

Commit

Permalink
fix: add expect class interface implementation for kotlin 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinjul committed Oct 17, 2024
1 parent 8640f4b commit 1020d76
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package org.publicvalue.multiplatform.oidc.appsupport

import org.publicvalue.multiplatform.oidc.flows.AuthCodeResponse
import org.publicvalue.multiplatform.oidc.flows.CodeAuthFlow
import org.publicvalue.multiplatform.oidc.types.AuthCodeRequest

expect class PlatformCodeAuthFlow: CodeAuthFlow
expect class PlatformCodeAuthFlow: CodeAuthFlow {
// in kotlin 2.0, we need to implement methods in expect classes
override suspend fun getAuthorizationCode(request: AuthCodeRequest): AuthCodeResponse
}

0 comments on commit 1020d76

Please sign in to comment.