Skip to content

Commit 578fbe7

Browse files
author
Guilherme Souza
committed
remove await
1 parent a7c1f02 commit 578fbe7

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

Sources/Auth/AuthClient.swift

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ public final class AuthClient: Sendable {
106106
/// - Parameters:
107107
/// - email: User's email address.
108108
/// - password: Password for the user.
109-
/// - data: User's metadata.
109+
/// - data: Custom data object to store additional user metadata.
110+
/// - redirectTo: The redirect URL embedded in the email link, defaults to ``Configuration/redirectToURL`` if not provided.
111+
/// - captchaToken: Optional captcha token for securing this endpoint.
110112
@discardableResult
111113
public func signUp(
112114
email: String,
@@ -145,7 +147,8 @@ public final class AuthClient: Sendable {
145147
/// - Parameters:
146148
/// - phone: User's phone number with international prefix.
147149
/// - password: Password for the user.
148-
/// - data: User's metadata.
150+
/// - data: Custom data object to store additional user metadata.
151+
/// - captchaToken: Optional captcha token for securing this endpoint.
149152
@discardableResult
150153
public func signUp(
151154
phone: String,
@@ -186,6 +189,10 @@ public final class AuthClient: Sendable {
186189
}
187190

188191
/// Log in an existing user with an email and password.
192+
/// - Parameters:
193+
/// - email: User's email address.
194+
/// - password: User's password.
195+
/// - captchaToken: Optional captcha token for securing this endpoint.
189196
@discardableResult
190197
public func signIn(
191198
email: String,
@@ -209,6 +216,10 @@ public final class AuthClient: Sendable {
209216
}
210217

211218
/// Log in an existing user with a phone and password.
219+
/// - Parameters:
220+
/// - email: User's phone number.
221+
/// - password: User's password.
222+
/// - captchaToken: Optional captcha token for securing this endpoint.
212223
@discardableResult
213224
public func signIn(
214225
phone: String,
@@ -339,8 +350,7 @@ public final class AuthClient: Sendable {
339350
/// - data: User's metadata.
340351
/// - captchaToken: Captcha verification token.
341352
///
342-
/// - Note: You need to configure a WhatsApp sender on Twillo if you are using phone sign in with
343-
/// the `whatsapp` channel.
353+
/// - Note: You need to configure a WhatsApp sender on Twillo if you are using phone sign in with the `whatsapp` channel.
344354
public func signInWithOTP(
345355
phone: String,
346356
channel: MessagingChannel = .sms,
@@ -369,8 +379,7 @@ public final class AuthClient: Sendable {
369379
/// Attempts a single-sign on using an enterprise Identity Provider.
370380
/// - Parameters:
371381
/// - domain: The email domain to use for signing in.
372-
/// - redirectTo: The URL to redirect the user to after they sign in with the third-party
373-
/// provider.
382+
/// - redirectTo: The URL to redirect the user to after they sign in with the third-party provider.
374383
/// - captchaToken: The captcha token to be used for captcha verification.
375384
/// - Returns: A URL that you can use to initiate the provider's authentication flow.
376385
public func signInWithSSO(

Tests/RealtimeTests/RealtimeTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ final class RealtimeTests: XCTestCase {
3737

3838
override func tearDown() {
3939
sut.disconnect()
40+
4041
super.tearDown()
4142
}
4243

Tests/SupabaseTests/SupabaseClientTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ final class SupabaseClientTests: XCTestCase {
7272

7373
XCTAssertEqual(client.functions.region, "ap-northeast-1")
7474

75-
let realtimeURL = await client.realtimeV2.url
75+
let realtimeURL = client.realtimeV2.url
7676
XCTAssertEqual(realtimeURL.absoluteString, "https://project-ref.supabase.co/realtime/v1")
7777

78-
let realtimeOptions = await client.realtimeV2.options
78+
let realtimeOptions = client.realtimeV2.options
7979
let expectedRealtimeHeader = client.defaultHeaders.merged(with: ["custom_realtime_header_key": "custom_realtime_header_value"])
8080
XCTAssertNoDifference(realtimeOptions.headers, expectedRealtimeHeader)
8181
XCTAssertIdentical(realtimeOptions.logger as? Logger, logger)

0 commit comments

Comments
 (0)