-
|
Hi, Thank you for creating support for these 3rd party libraries I have wanted recently like skip-sentry, skip-posthog, etc. I have attempted to created skip-auth0. But I am encountering two issues. Here is my code (early attempt) so far: The two issues I have encountered are: and It appears that Void? is being converted to Unit (which causes the mismatch). converts to: Any advice on how to resolve these two issues? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
When you
This is a tricky bit, because Skip does see typealias KotlinVoid = java.lang.Void
class Auth0LogoutCallback: Callback<KotlinVoid?, AuthenticationException> {
private let completion: (Result<Void, Error>) -> Void
init(_ completion: @escaping (Result<Void, Error>) -> Void) {
self.completion = completion
}
override func onSuccess(result: KotlinVoid?) {
completion(.success(()))
}
override func onFailure(error: AuthenticationException) {
completion(.failure(Auth0Error.webAuthFailed(error.description)))
}
} |
Beta Was this translation helpful? Give feedback.
-
|
By the way, this does seem like it could be a generally useful project, so let us know if you would like us to create a top level |
Beta Was this translation helpful? Give feedback.
-
|
Sure! That would be great. |
Beta Was this translation helpful? Give feedback.
Done! You can fork it from https://github.com/skiptools/skip-auth0. Let us know if we can help in any way with fleshing it out and adding improvements.