Moref
12/18/2024, 10:41 AMexpect class Auth0Service() {
fun login(phoneNumber: String): StateFlow<LoginStatus>
fun verify(phoneNumber: String, otp: String): StateFlow<VerifyStatus>
fun logout(): StateFlow<LogoutStatus>
fun userInfo(): StateFlow<GetUserInfoStatus>
fun isAuthenticated(): StateFlow<IsAuthenticatedStatus>
}
I implement the actual for android Auth0Service.android.kt
but I still need to implement it for IOS Auth0Service.ios.kt
, in IOS I use cocoapods
as a package manager and I install Auth0 and created a swift file for implementation but I need to expose it to iosMain to use the code in Auth0Service.ios.kt
is there a way to compile the swift implementation and use it in kotlin? i tried to use swiftklib plugin and it keep syaing:
error: no such module 'Auth0'
7 | //
8 |
9 | import Auth0
| `- error: no such module 'Auth0'
10 | import Foundation
dylan
12/19/2024, 6:33 PMMoref
12/19/2024, 6:43 PMdylan
12/19/2024, 6:49 PMdylan
12/19/2024, 6:50 PMMoref
12/21/2024, 11:36 AM