Skip to content

Commit fac8d36

Browse files
authored
Merge pull request #1 from blueragesoftware/ertembiyik/fix-initial-auth-state
2 parents b73cc87 + 12c81b6 commit fac8d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ConvexMobile/ConvexMobile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public protocol AuthProvider<T, LoginParams> {
189189
/// The generic parameter `T` matches the type of data returned by the ``AuthProvider`` upon successful
190190
/// authentication.
191191
public class ConvexClientWithAuth<T, LoginParams>: ConvexClient {
192-
private let authPublisher = CurrentValueSubject<AuthState<T>, Never>(AuthState.unauthenticated)
192+
private let authPublisher = CurrentValueSubject<AuthState<T>, Never>(AuthState.loading)
193193
private let authProvider: any AuthProvider<T, LoginParams>
194194

195195
/// A publisher that updates with the current ``AuthState`` of this client instance.

0 commit comments

Comments
 (0)