Skip to content

Files

Latest commit

5ffd888 · Dec 23, 2024

History

History
23 lines (13 loc) · 1012 Bytes
·

README.md

File metadata and controls

23 lines (13 loc) · 1012 Bytes
·

Multi-Factor Authentication Demo

This is a sample integrating Multi-Factor Authentication with Supabase in a Compose Multiplatform app.

Available platforms: Android, Desktop, JS Canvas

Modules used: GoTrue

vide.mp4

Configuration

You need to specify your Supabase url and key in supabaseModule.kt If you want to try out Google OAuth, set it up in the Supabase dashboard and add io.jan.supabase://login to the registered urls.

Running

To run the app, you need to run the following commands in the root directory of the project:

./gradlew :sample:multi-factor-auth:desktop:runDistributable (Desktop)
./gradlew :sample:multi-factor-auth:web:jsBrowserDevelopmentRun (JS Canvas)

For android, use the IDE to run the app.