emo / me.eater.emo / EmoInstance / getAccountViaAuthentication

getAccountViaAuthentication

suspend fun getAccountViaAuthentication(uuid: String = useSettings(true) { it.getSelectedAccountUuid() }, requireLoggedIn: Boolean = true): Account

Get an account by uuid if not given, selected account is used. Will try to reauthenticate with the mojang account service if requireLoggedIn is true or not given, will throw on failed re-authentication