Skip to content

Commit 32de22f

Browse files
authored
fix(auth): missing autoRefreshToken param in initializer (#415)
1 parent 92a9047 commit 32de22f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/Supabase/Types.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,16 @@ extension SupabaseClientOptions.AuthOptions {
147147
redirectToURL: URL? = nil,
148148
flowType: AuthFlowType = AuthClient.Configuration.defaultFlowType,
149149
encoder: JSONEncoder = AuthClient.Configuration.jsonEncoder,
150-
decoder: JSONDecoder = AuthClient.Configuration.jsonDecoder
150+
decoder: JSONDecoder = AuthClient.Configuration.jsonDecoder,
151+
autoRefreshToken: Bool = AuthClient.Configuration.defaultAutoRefreshToken
151152
) {
152153
self.init(
153154
storage: AuthClient.Configuration.defaultLocalStorage,
154155
redirectToURL: redirectToURL,
155156
flowType: flowType,
156157
encoder: encoder,
157-
decoder: decoder
158+
decoder: decoder,
159+
autoRefreshToken: autoRefreshToken
158160
)
159161
}
160162
#endif

0 commit comments

Comments
 (0)