George
02/28/2022, 8:26 AMJoffrey
02/28/2022, 8:41 AMGeorge
02/28/2022, 8:44 AMJoffrey
02/28/2022, 8:47 AMGeorge
02/28/2022, 8:52 AMpublic sealed class SolidOidc {
public class Success(public val tokens: String) : SolidOidc()
public sealed class Error(public val something: String) : SolidOidc() {
public class IOError(public val error: String) : Error(error)
public class NetworkError(public val error: String): Error(error)
public sealed class AuthenticationError(public val error: String): Error(error) {
// TODO different scenarios based on auth
}
}
}
Something like this i guessGeorge
02/28/2022, 8:53 AMJoffrey
02/28/2022, 9:02 AMTokenResult
hints at the fact that it contains tokens or an error. SolidOidc
would be a bit too generic here, since it doesn't say what it contains, it's the name of the whole protocolGeorge
02/28/2022, 9:20 AM