-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #732 from supabase-community/rename-gotrue-new
Rename GoTrue to Auth
- Loading branch information
Showing
188 changed files
with
474 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Supabase-kt Auth | ||
|
||
**Only available for versions 3.0.0 and above. For versions below 3.0.0, checkout the [old README](/GoTrue)** | ||
|
||
Extends Supabase-kt with a multiplatform Auth client. | ||
|
||
Supported targets: | ||
|
||
| Target | **JVM** | **Android** | **JS** | **Wasm** | **Apple** | **Windows** | **Linux** | | ||
|--------|---------|-------------|--------|----------|-----------|-------------|-----------| | ||
| Status | ✅ | ✅ | ✅ | ✅ | ☑️* | ☑️ | ☑️ | | ||
|
||
> ☑️ = No built-in OAuth support. Linux has no support for persistent session storage. | ||
\* **iOS and macOS are fully supported** | ||
|
||
<details> | ||
|
||
<summary>In-depth Kotlin targets</summary> | ||
|
||
**JS**: Browser, NodeJS | ||
|
||
**Wasm**: wasm-js | ||
|
||
**Apple:** | ||
|
||
- iOS: iosArm64, iosSimulatorArm64, iosX64 | ||
|
||
- tvOS: tvosArm64, tvosX64, tvosSimulatorArm64 | ||
|
||
- watchOS: watchosArm64, watchosX64, watchosSimulatorArm64 | ||
|
||
- MacOS: macosX64, macosArm64 | ||
|
||
**Windows**: mingwX64 | ||
|
||
**Linux**: linuxX64 | ||
|
||
</details> | ||
|
||
# Installation | ||
|
||
Newest version: [![](https://img.shields.io/github/release/supabase-community/supabase-kt?label=)](https://github.com/supabase-community/supabase-kt/releases) | ||
|
||
```kotlin | ||
dependencies { | ||
implementation("io.github.jan-tennert.supabase:auth-kt:VERSION") | ||
} | ||
``` | ||
|
||
Install the plugin in your SupabaseClient. See the [documentation](https://supabase.com/docs/reference/kotlin/initializing) for more information | ||
|
||
```kotlin | ||
val supabase = createSupabaseClient( | ||
supabaseUrl = "https://id.supabase.co", | ||
supabaseKey = "apikey" | ||
) { | ||
|
||
//... | ||
|
||
install(Auth) { | ||
// settings | ||
} | ||
|
||
} | ||
``` | ||
|
||
# Usage | ||
|
||
See [Auth documentation](https://supabase.com/docs/reference/kotlin/auth-signup) for usage |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../io/github/jan/supabase/gotrue/Android.kt → ...in/io/github/jan/supabase/auth/Android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../github/jan/supabase/gotrue/AuthConfig.kt → ...io/github/jan/supabase/auth/AuthConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...an/supabase/gotrue/RedirectUrl.android.kt → .../jan/supabase/auth/RedirectUrl.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...thub/jan/supabase/gotrue/Utils.android.kt → ...github/jan/supabase/auth/Utils.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...se/gotrue/providers/ExternalAuthConfig.kt → ...base/auth/providers/ExternalAuthConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...thub/jan/supabase/gotrue/setupPlatform.kt → ...github/jan/supabase/auth/setupPlatform.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndroidUnitTest/kotlin/platformSettings.kt → ...ndroidUnitTest/kotlin/platformSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/io/github/jan/supabase/gotrue/Apple.kt → ...tlin/io/github/jan/supabase/auth/Apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../jan/supabase/gotrue/RedirectUrl.apple.kt → ...ub/jan/supabase/auth/RedirectUrl.apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...github/jan/supabase/gotrue/Utils.apple.kt → ...o/github/jan/supabase/auth/Utils.apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...se/gotrue/providers/ExternalAuthConfig.kt → ...base/auth/providers/ExternalAuthConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...upabase/gotrue/providers/OAuthProvider.kt → .../supabase/auth/providers/OAuthProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...thub/jan/supabase/gotrue/setupPlatform.kt → ...github/jan/supabase/auth/setupPlatform.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/linuxTest/kotlin/platformSettings.kt → .../src/appleTest/kotlin/platformSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import io.github.jan.supabase.gotrue.AuthConfig | ||
import io.github.jan.supabase.auth.AuthConfig | ||
|
||
actual fun AuthConfig.platformSettings() = Unit |
2 changes: 1 addition & 1 deletion
2
...github/jan/supabase/gotrue/AccessToken.kt → ...o/github/jan/supabase/auth/AccessToken.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
...lin/io/github/jan/supabase/gotrue/Auth.kt → ...otlin/io/github/jan/supabase/auth/Auth.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../github/jan/supabase/gotrue/AuthConfig.kt → ...io/github/jan/supabase/auth/AuthConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...hub/jan/supabase/gotrue/AuthExtensions.kt → ...ithub/jan/supabase/auth/AuthExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
...io/github/jan/supabase/gotrue/AuthImpl.kt → ...n/io/github/jan/supabase/auth/AuthImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pabase/gotrue/AuthenticatedSupabaseApi.kt → ...supabase/auth/AuthenticatedSupabaseApi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../jan/supabase/gotrue/CodeVerifierCache.kt → ...ub/jan/supabase/auth/CodeVerifierCache.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...an/supabase/gotrue/GoTrueErrorResponse.kt → .../jan/supabase/auth/GoTrueErrorResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...o/github/jan/supabase/gotrue/JsonUtils.kt → .../io/github/jan/supabase/auth/JsonUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../io/github/jan/supabase/gotrue/OtpType.kt → ...in/io/github/jan/supabase/auth/OtpType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lin/io/github/jan/supabase/gotrue/PKCE.kt → ...otlin/io/github/jan/supabase/auth/PKCE.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...jan/supabase/gotrue/PostgrestFilterDSL.kt → ...b/jan/supabase/auth/PostgrestFilterDSL.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...github/jan/supabase/gotrue/RedirectUrl.kt → ...o/github/jan/supabase/auth/RedirectUrl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...hub/jan/supabase/gotrue/SessionManager.kt → ...ithub/jan/supabase/auth/SessionManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...thub/jan/supabase/gotrue/SessionStatus.kt → ...github/jan/supabase/auth/SessionStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ithub/jan/supabase/gotrue/SignOutScope.kt → .../github/jan/supabase/auth/SignOutScope.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/io/github/jan/supabase/gotrue/Utils.kt → ...tlin/io/github/jan/supabase/auth/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.