Skip to content

Commit e02a480

Browse files
authored
Merge pull request #1043 from supabase-community/combine-js
Unify Wasm JS and JS implementations
2 parents 7ff51e3 + 54bb5a0 commit e02a480

File tree

15 files changed

+16
-123
lines changed

15 files changed

+16
-123
lines changed

Auth/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ kotlin {
2222
withLinux()
2323
withMingw()
2424
}
25-
group("web") {
26-
withJs()
27-
withWasmJs()
28-
}
2925
group("nonDesktop") {
3026
//withAndroidTarget() android has its own implementation
3127
withIos()
@@ -71,7 +67,7 @@ kotlin {
7167
api(libs.androidx.browser)
7268
}
7369
}
74-
val wasmJsMain by getting {
70+
val webMain by getting {
7571
dependencies {
7672
api(libs.kotlinx.browser)
7773
}

Auth/src/jsMain/kotlin/io/github/jan/supabase/auth/AuthConfig.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

Auth/src/jsMain/kotlin/io/github/jan/supabase/auth/RedirectUrl.js.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

Auth/src/jsMain/kotlin/io/github/jan/supabase/auth/Utils.js.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

Auth/src/jsMain/kotlin/io/github/jan/supabase/auth/setupPlatform.kt

Lines changed: 0 additions & 73 deletions
This file was deleted.

Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/AuthConfig.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/providers/ExternalAuthConfig.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.github.jan.supabase.auth
2+
3+
import io.github.jan.supabase.plugins.CustomSerializationConfig
4+
5+
/**
6+
* The configuration for [Auth]
7+
*/
8+
actual class AuthConfig: CustomSerializationConfig, AuthConfigDefaults() {
9+
10+
/**
11+
* Whether to disable automatic URL checking for PKCE codes, error codes, and session tokens.
12+
*/
13+
var disableUrlChecking: Boolean = false
14+
15+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)