Skip to content

Commit

Permalink
change to clientUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuehly committed Jun 16, 2024
1 parent 5bead04 commit 4a3b827
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SupabaseAutoConfiguration(
@ConditionalOnMissingBean
fun supabaseClient(supabaseProperties: SupabaseProperties): Auth {
val supabase = createSupabaseClient(
supabaseUrl = supabaseProperties.supabaseUrl ?: "https://${supabaseProperties.projectId}.supabase.co",
supabaseUrl = supabaseProperties.clientUrl ?: "https://${supabaseProperties.projectId}.supabase.co",
supabaseKey = supabaseProperties.anonKey
) {
install(Auth) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SupabaseProperties(
val anonKey: String,
val jwtSecret: String?,
val database: Database? = null,
val supabaseUrl: String? = null,
val clientUrl: String? = null,
val otpCreateUser: Boolean = true,
val successfulLoginRedirectPage: String?,
val passwordRecoveryPage: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
"description": "username for database, defaults to postgres.${projectId}",
"sourceType": "de.tschuehly.htmx.spring.supabase.auth.config.SupabaseProperties"
},
{
"name": "supabase.database.clientUrl",
"type": "java.lang.String",
"description": "clientUrl for Supabase Auth, defaults to https://${supabaseProperties.projectId}.supabase.co",
"sourceType": "de.tschuehly.htmx.spring.supabase.auth.config.SupabaseProperties"
},

{
"name": "supabase.database.password",
"type": "java.lang.String",
Expand Down

0 comments on commit 4a3b827

Please sign in to comment.