Files
soreavisandNik Richers 8f76606683 docs(kotlin): fix outdated API names and ack wording in guides (#53282)
## Problem

Some Kotlin snippets in the guides use names supabase-kt renamed in 2.0,
so they don't compile with current supabase-kt (3.9.0). The Apple
sign-in page also asks for `gotrue-kt`, which has no 3.x release (3.0.0
replaced it with `auth-kt`). And the Kotlin tab of "Acknowledge
messages" in the Broadcast guide says `acknowledgeBroadcasts` sends
messages back to the sender, which is what `receiveOwnBroadcasts` does.

Closes #53281

## Solution

- `passwords.mdx`: `supabase.gotrue.sendRecoveryEmail` →
`supabase.auth.resetPasswordForEmail` in the PKCE flow, the same rename
#33564 made in the Implicit flow copy.
- `auth-apple.mdx`: `gotrue.signInWith(Apple)` →
`auth.signInWith(Apple)`, `install(GoTrue)` → `install(Auth)`,
`gotrue-kt` → `auth-kt`.
- `postgres-changes.mdx`: `realtime.createChannel` → `channel`, and
`connect()` + `join()` → `subscribe()`, which connects on its own. That
matches the other Kotlin snippets on the page. `connect()` still exists,
it just isn't needed here.
- `broadcast.mdx`: the Kotlin ack tab now says the servers acknowledge
each message, and that on a subscribed channel `broadcast()` doesn't
wait for or return the acknowledgment. `acknowledgeBroadcasts`
serializes to `ack` in `RealtimeJoinPayload.kt`, while `broadcast()`
returns `Unit` and the server's reply is only logged.

The renames come from supabase-kt's MIGRATION.md, and I checked each new
name against the 3.9.0 source and the Kotlin reference. `/test-the-docs`
doesn't run `kotlin` fences, so nothing was executed.

The compose-auth snippet on the Apple page has three more compile errors
that aren't renames: `result.error` (`NetworkError` only has `message`),
`scope`, which is never declared, and `fullName` on `SignInResultData`,
which only exposes `credential` on Apple targets. I left those out and
can send them separately.

## Review instructions

1. Open the Kotlin tab of each changed snippet on the preview: passwords
(PKCE flow, step 3), Apple sign-in, Postgres Changes `neq` filter,
Broadcast "Acknowledge messages".
2. Compare the names with the 2.0 and 3.0 sections of supabase-kt's
MIGRATION.md and with the Kotlin reference for `resetPasswordForEmail`,
`subscribe` and installing.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-24 22:24:01 +00:00
..