NaverLoginResult
The outcome of NaverLogin.login.
Three cases, because "the user changed their mind" is not an error and should not have to be fished out of one. NAVER's Android SDK reports a cancellation as the failure code user_cancel and its iOS SDK as .clientError(.canceledByUser); both arrive here as Cancelled.
Inheritors
Types
Link copied to clipboard
The user backed out, from the NAVER app or from the browser. Show nothing.
Link copied to clipboard
class Failure(val code: NaverLoginErrorCode, val message: String, val rawCode: String? = null, val rawMessage: String? = null) : NaverLoginResult
The attempt failed.
Link copied to clipboard
class Success(val accessToken: NaverAccessToken, val refreshToken: String? = null) : NaverLoginResult
The user signed in.