You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,9 +132,7 @@ __For versions below 3.0.0:__
132
132
133
133
-[Chat Demo](/sample/chat-demo-mpp)*(Desktop/Android/iOS/Browser)* - A simple chat application using the Auth, Postgrest and Realtime module.
134
134
-[File Upload Demo](/sample/file-upload)*(Desktop/Android)* - A simple bulk file upload application using the Storage module.
135
-
-[Android Native Google login & in-app OAuth](https://github.com/supabase-community/supabase-kt/tree/master/demos/android-login)*(Android)* - A simple Android application showcasing Native Google login and in-app OAuth.
136
135
-[Multi-Factor Authentication](/sample/multi-factor-auth)*(Desktop/Android/Browser)* - A simple application showcasing Multi-Factor Authentication.
137
-
-[Multiplatform Deep Linking](https://github.com/supabase-community/supabase-kt/tree/master/demos/multiplatform-deeplinks)*(Desktop/Android)* - A simple application showcasing deep linking on Desktop and Android.
Copy file name to clipboardExpand all lines: demos/android-login/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Deprecation note
2
+
2
3
This sample has been deprecated. Checkout the [official video](https://www.youtube.com/watch?v=P_jZMDmodG4&pp=ygUWc3VwYWJhc2UgZ29vZ2xlIGtvdGxpbg%3D%3D) on how to use the Google Credential Manager to natively sign in with Google or checkout [Compose Auth](/plugins/ComposeAuth)
4
+
3
5
# Android Login Demo
4
6
5
7
This is a demo of an android app using Google OneTap/Native Sign-In & WebView for authentication
This is a demo of integrating deeplink authentication with Supabase on Desktop and Android.
@@ -8,28 +12,28 @@ This is a demo of integrating deeplink authentication with Supabase on Desktop a
8
12
9
13
## How it works (Desktop)
10
14
11
-
On Desktop it uses [Conveyor](https://conveyor.hydraulic.dev/9.2/) to create an installer which registers the url protocol on installation.
15
+
On Desktop, it uses [Conveyor](https://conveyor.hydraulic.dev/9.2/) to create an installer which registers the url protocol on installation.
12
16
To allow the app to have a single instance running, this demo uses [unique4j](https://github.com/prat-man/unique4j).
13
17
14
18
Unique4j uses a server to let different instance communicate with each other. If you are for example after you successfully log in with Google, you get redirected to the registered url protocol and a second instance opens. This second instance sends the data to the first instance and closes itself. (If there is another instance running)
15
19
16
20
# Configuration
17
21
18
-
You need to specify your supabase url and key in [supabaseModule.kt](https://github.com/supabase-community/supabase-kt/blob/master/demos/multiplatform-deeplinks/common/src/commonMain/kotlin/io/github/jan/supabase/common/di/supabaseModule.kt).
22
+
You need to specify your Supabase url and key in [supabaseModule.kt](https://github.com/supabase-community/supabase-kt/blob/master/demos/multiplatform-deeplinks/common/src/commonMain/kotlin/io/github/jan/supabase/common/di/supabaseModule.kt).
19
23
20
-
If you want Google login to work, [set it up](https://supabase.com/docs/guides/auth/social-login) in the supabase dashboard and add `io.github.jan.supabase://login` to the registered urls.
24
+
If you want Google login to work, [set it up](https://supabase.com/docs/guides/auth/social-login) in the Supabase dashboard and add `io.github.jan.supabase://login` to the registered urls.
21
25
22
26
### Building
23
27
24
28
On Android just build the APK with the IDE. Authentication should work without any additional setup.
25
29
26
-
On Desktop you have to install [Conveyor](https://conveyor.hydraulic.dev/9.2/) and run `conveyor make site` in `/desktop`.
30
+
On Desktop, you have to install [Conveyor](https://conveyor.hydraulic.dev/9.2/) and run `conveyor make site` in `/desktop`.
27
31
28
32
Then you can serve the download site e.g. with npx: `npx serve desktop/output`
29
33
30
34
To test it, go to **localhost:3000/download** and download the installer. This will register the url protocol and install the app.
31
35
After it installed, provider login and sign up should work without even having the application open.
32
36
33
-
**Note:** Desktop and Android use the same url protocol, so you users can open sign up emails on either platform.
37
+
**Note:** Desktop and Android use the same url protocol, so your users can open sign up emails on either platform.
0 commit comments