A Kotlin Multiplatform Client for Supabase.
Auth#modifyUser
to Auth#updateUser
by @jan-tennert in https://github.com/supabase-community/supabase-kt/pull/534
method
parameter which takes in a RpcMethod
. This can either be POST
, HEAD
or GET
. The head parameter has been removed.There is now a Slack channel for supabase-kt!
UserInfo
on sign up by @jan-tennert in https://github.com/supabase-community/supabase-kt/pull/528
The signUpWith
method will now return a UserInfo
object for the Email
, Phone
and IDToken
instead of separate Result objects.There is now a Slack channel for supabase-kt!
Add wasm-js
support for compose-auth
, compose-auth-ui
and apollo-graphql
.
3.0.0-wasm2
.filter
param to request
in Postgrest#rpc by @jan-tennert in https://github.com/supabase-community/supabase-kt/pull/506
OTP.Config#createUser
to true to match docs and other client libs
phoneNumber
parameter in Auth#resendPhone
to phone
.Realtime.Config#eventsPerSecond
(yes, I know this was just introduced, but apparently all other client libs are now also deprecating it)val supabase = createSupabaseClient(url, key) {
defaultLogLevel = LogLevel.WARNING
}
Note: The default logging level is set to LogLevel.INFO
Auth.setLogLevel(LogLevel.NONE)
SessionStatus
:
Authenticated
now has a source
property which can be Storage
, SignIn
, SignUp
, Refresh
, External
, UserChanged
, UserIdentitiesChanged
or Unknown
Authenticated
now also has a isNew
property which returns true if the source
is either SignIn
, SignUp
or External
NotAuthenticated
status is now a data class rather than an object and has a isSignOut
propertyAuth#oAuthUrl
to Auth#getOAuthUrl
signInWith(Google)
will now block the current coroutine until the flow succeeds or times out.macosX64*
and linuxX64
targets
* Only used if no deeplink host & scheme or a default redirect url is provided.AuthConfig#httpCallbackConfig()
method for configuring these servers.host
and scheme
auth config properties to common code (will still not used by all targets)AuthConfig#defaultRedirectUrl
to override the default redirect url used for requests. Defaults to null, which means that everything stays as it is; Desktop targets will use a http callback server, mobile targets deeplinks, etc.Auth#signOut
or Auth#clearSession
the Google credential will now also be cleared.
ComposeAuth#rememberSignOutWithGoogle
has been removed.nonce
and extraData
when calling startFlow
rather than in the plugin settings.
nonce
parameter is specified (or not set to null manually), the library will now take care of generating a nonce and using it for authentication.NativeSignInState#started
has been changed to NativeSignInState#status
which can be Started
or NotStarted
eventsPerSecond
(default is 10), which configures a client-side rate-limit for sending broadcasts, presence updates etc. If this rate-limit is exceeded, any message within this duration will fail.
Set to a negative number to disable.WASM support will be skipped again as Ktor won't be releasing a stable version supporting WASM-JS anytime soon.
SessionStatus.Authenticated#isNew
: This will be true if the session source is a sign in, sign up or is external. Use this to to determine whether you e.g. change the screen.SessionStatus
:
Authenticated
now has a source
property which can be Storage
, SignIn
, SignUp
, Refresh
, External
, UserChanged
, UserIdentitiesChanged
or Unknown
NotAuthenticated
status is now a data class rather than an object and has a isSignOut
propertyAuth#signOut
or Auth#clearSession
the Google credential will now also be cleared.nonce
and extraData
when calling startFlow
rather than in the plugin settings.nonce
parameter is specified (or not set to null manually), the library will now take care of generating a nonce and using it for authentication.NativeSignInState#started
has been changed to NativeSignInState#status
which can be Started
or NotStarted