Skip to content

Commit 3b2bd9a

Browse files
author
Guilherme Souza
committed
remove await
1 parent 833853d commit 3b2bd9a

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,
@@ -184,6 +187,10 @@ public final class AuthClient: Sendable {
184187
}
185188

186189
/// Log in an existing user with an email and password.
190+
/// - Parameters:
191+
/// - email: User's email address.
192+
/// - password: User's password.
193+
/// - captchaToken: Optional captcha token for securing this endpoint.
187194
@discardableResult
188195
public func signIn(
189196
email: String,
@@ -207,6 +214,10 @@ public final class AuthClient: Sendable {
207214
}
208215

209216
/// Log in an existing user with a phone and password.
217+
/// - Parameters:
218+
/// - email: User's phone number.
219+
/// - password: User's password.
220+
/// - captchaToken: Optional captcha token for securing this endpoint.
210221
@discardableResult
211222
public func signIn(
212223
phone: String,
@@ -333,8 +344,7 @@ public final class AuthClient: Sendable {
333344
/// - data: User's metadata.
334345
/// - captchaToken: Captcha verification token.
335346
///
336-
/// - Note: You need to configure a WhatsApp sender on Twillo if you are using phone sign in with
337-
/// the `whatsapp` channel.
347+
/// - Note: You need to configure a WhatsApp sender on Twillo if you are using phone sign in with the `whatsapp` channel.
338348
public func signInWithOTP(
339349
phone: String,
340350
channel: MessagingChannel = .sms,
@@ -362,8 +372,7 @@ public final class AuthClient: Sendable {
362372
/// Attempts a single-sign on using an enterprise Identity Provider.
363373
/// - Parameters:
364374
/// - domain: The email domain to use for signing in.
365-
/// - redirectTo: The URL to redirect the user to after they sign in with the third-party
366-
/// provider.
375+
/// - redirectTo: The URL to redirect the user to after they sign in with the third-party provider.
367376
/// - captchaToken: The captcha token to be used for captcha verification.
368377
/// - Returns: A URL that you can use to initiate the provider's authentication flow.
369378
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)