refactor(auth, design-system): remove unused methods and annotations for cleanup

- Deleted obsolete methods such as `exchangeAuthorizationCode` and `logout` from the Auth module.
- Removed unused browser PKCE utilities and associated constants.
- Annotated unused components across the Design System with `@Suppress("unused")` for clarity.
- Simplified `LoginViewModel` to handle logout by clearing UI state directly.
This commit is contained in:
Stefan Mogeritsch 2026-01-23 01:37:55 +01:00
parent ec97b62afa
commit e8124c047a
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ package at.mocode.frontend.core.auth.data
import at.mocode.shared.core.AppConstants import at.mocode.shared.core.AppConstants
import io.ktor.client.* import io.ktor.client.*
import io.ktor.client.call.* import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.client.request.forms.* import io.ktor.client.request.forms.*
import io.ktor.http.* import io.ktor.http.*
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable

View File

@ -286,7 +286,7 @@ class AuthTokenManager {
*/ */
private fun extractPermissionsFromJson(jsonString: String): List<String>? { private fun extractPermissionsFromJson(jsonString: String): List<String>? {
return try { return try {
// Simple regex to find permissions array // Simple regex to find a permissions array
val permissionsRegex = """"permissions":\s*\[(.*?)\]""".toRegex() val permissionsRegex = """"permissions":\s*\[(.*?)\]""".toRegex()
val match = permissionsRegex.find(jsonString) val match = permissionsRegex.find(jsonString)