This is a simple project that demonstrates how to use supabase-swift to authenticate users with Supabase in a SwiftUI app natively.
- Apple Sign In and Supabase Auth
- Edge Functions with AI models for embedding generation
The app enables users to log in and save their notes. The edge function generates embeddings for the notes and saves them in the database. Later, users can search for notes using vector similarity search.
- Clone the project
- Install the dependencies
- Create a new Supabase project, and enable Apple auth provider in auth settings
- Install supabase CLI and login to your account
- Run migrations from the
supabase/migrations
folder - Deploy edge functions from the
supabase/functions
folder - Update the
supabaseUrl
andsupabaseKey
in theAuthManager.swift
file - Run the project
- Have fun!
This project is inspired by the Jason Dubon guide on how to use Supabase with SwiftUI to implement native authentication and made for London Supabase 04.2024 meetup.