feat(02-03): add Wasm auth stubs

- Keep Wasm OIDC behind explicit v2 NotImplementedError boundaries
- Add non-persistent Wasm AuthState store actual so the target compiles
This commit is contained in:
2026-04-28 13:49:14 +02:00
parent edc2a1d4c8
commit 0dbd374f46
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package dev.ulfrx.recipe.auth
actual class OidcClient {
actual suspend fun login(): OidcResult {
throw NotImplementedError("Wasm OIDC: v2")
}
actual suspend fun refresh(authStateJson: String): OidcResult {
throw NotImplementedError("Wasm OIDC: v2")
}
actual suspend fun logout(authStateJson: String) {
throw NotImplementedError("Wasm OIDC: v2")
}
}

View File

@@ -0,0 +1,17 @@
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package dev.ulfrx.recipe.auth
actual class SecureAuthStateStore {
private var authStateJson: String? = null
actual fun read(): String? = authStateJson
actual fun write(authStateJson: String) {
this.authStateJson = authStateJson
}
actual fun clear() {
authStateJson = null
}
}