Is there support for using a custom browser fn for...
# supabase-kt
k
Is there support for using a custom browser fn for oauth flow with signinwith(Provider)? asking because im getting this error on linux Fedora
java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
, and I already have a multi platform browser open fn util
j
Assuming you want to use the built in Http Server Callback OAuth flow?
k
yes
signinwith google and github work great, the only difference is when opening the browser i just want to use a custom
BrowserUtil.browse(url)
fn
this is the function that intellij/jetbrains wrote in the their IDE
This is an edge case and only happens for plugin developers, but this is super important for us. Something like: > val supabase = createSupabaseClient( > supabaseUrl = "...", > supabaseKey = "..." > ) { > install(Auth) { > flowType = FlowType.PKCE > browserCallbackConfig { url -> BrowserUtil.browse(url) } // My custom browser opening function This would be consistent with "httpCallbackConfig"
any workarounds are welcome too
j
yea sadly all these functions are marked as internal, making a workaround impossible
k
yep i read through the supabase-kt repo ^^ i was considering forking / rebuilding w/ this and somehow depending on the forked version temporarily
as a workaround
j
that would be the only one, though making the URL opening configurable is not that hard, I can publish a v3.2.0-beta later
k
happy to test it and confirm
URL opening configurable is not that hard, I can publish a v3.2.0-beta later
is there a $$ amount i can pay you to speed this up
j
Version should be up in max. 1 hour
🙌 1
I'll create a release then
🙌 1
k
sent 250 euros
thanks for doing this
also if you want i can give you free enterprise on firebender.com coding agent in jetbrains IDEs (claude 3.7 sonnet, autocomplete, etc). your work is making auth possible for us
just give me an email for that ^
j
thank you so much, you really didn't need to
also if you want i can give you free enterprise on firebender.com coding agent in jetbrains IDEs (claude 3.7 sonnet, autocomplete, etc). your work is making auth possible for us
thank you I will keep that in mind, looks very cool on the website 👍