is it possible to have supabase kt handle `<https:...
# supabase-kt
k
is it possible to have supabase kt handle
<https://localhost:51145/?code=7d6credacted>
where the protocol is
https
. some of our users are in a corporate environment that default any browser http://localhost to redirect them to
https
for some reason
j
SSL is supported by Ktor on the JVM, not entirely sure if I can bundle a configuration. Looking into it
So its possible to implement this for the JVM target, however: • It obviously can only be a self-signed certificate, so the user has to do the extra step and trust this certificate (2 clicks in the browser, still) • You can only use the HTTP or HTTPs version as the redirect url, not HTTP and then if the environment forces HTTPs, use HTTPs because random ports are used. So you'd have to always use HTTP or HTTPs (if random ports are used). I could make it configurable which port to use (so you could configure it to use the default port, which would allow your scenario), though I'm still not entirely sure if it makes sense to package a SSL configuration into the library
k
got it thanks for looking into this
i think the best alternative for us would be allowing sign in with verification code
via email