Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(docs): update reference docs for Swift (#25994)

Guilherme Souzac287fd309fea
diff --git a/apps/docs/spec/supabase_swift_v2.yml b/apps/docs/spec/supabase_swift_v2.yml
index 414dd6a7d40..ab08b0967a4 100644
--- a/apps/docs/spec/supabase_swift_v2.yml
+++ b/apps/docs/spec/supabase_swift_v2.yml
@@ -496,6 +496,14 @@ functions:
```swift
try await supabase.auth.session
```
+ - id: get-current-session-no-validation
+ name: Get the current session without validation
+ isSpotlight: true
+ description: The session returned by this property may be expired.
+ code: |
+ ```swift
+ let session = supabase.auth.currentSession
+ ```
- id: get-user
title: "user()"
description: |
@@ -517,6 +525,14 @@ functions:
```swift
let user = try await supabase.auth.user(jwt: "custom-jwt")
```
+ - id: get-current-user
+ name: Get current user
+ isSpotlight: true
+ description: The user returned by this property may be outdated.
+ code: |
+ ```swift
+ let user = supabase.auth.currentUser
+ ```
- id: update-user
title: "updateUser()"
notes: |
@@ -3209,6 +3225,21 @@ functions:
)
)
```
+ - id: additional-query-params
+ name: Pass additional query params
+ description: |
+ You can pass additional query params when invoking a function.
+ isSpotlight: true
+ code: |
+ ```swift
+ let response = try await supabase.functions
+ .invoke(
+ "hello",
+ options: FunctionInvokeOptions(
+ query: [URLQueryItem(name: "key", value: "value")]
+ )
+ )
+ ```
- id: subscribe
title: on().subscribe()
notes: |