Skip to content

Latest commit

 

History

History

multi-factor-auth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.