From 4169ed6d4e863e994bbf70140033ffd1825c884d Mon Sep 17 00:00:00 2001 From: Nenad Ljubik Date: Thu, 3 Aug 2023 13:46:21 +0200 Subject: [PATCH 1/2] Removed Apple as a provider for getOAuthSignInURL method Removed the default value for provider in the init method for OpenIDConnectCredentials --- Sources/GoTrue/Types.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/GoTrue/Types.swift b/Sources/GoTrue/Types.swift index 3e2f6ac..3a89031 100644 --- a/Sources/GoTrue/Types.swift +++ b/Sources/GoTrue/Types.swift @@ -298,7 +298,6 @@ public struct UserIdentity: Codable, Hashable, Identifiable, Sendable { } public enum Provider: String, Codable, CaseIterable, Sendable { - case apple case azure case bitbucket case discord @@ -340,7 +339,7 @@ public struct OpenIDConnectCredentials: Codable, Hashable, Sendable { public var gotrueMetaSecurity: GoTrueMetaSecurity? public init( - provider: Provider? = nil, + provider: Provider?, idToken: String, accessToken: String? = nil, nonce: String? = nil, From a6b6c4ee6ecbf85798bd72f5828af4501c47c7ac Mon Sep 17 00:00:00 2001 From: Nenad Ljubik Date: Fri, 4 Aug 2023 11:31:06 +0200 Subject: [PATCH 2/2] Removed experimental label on signInWithIdToken method --- Sources/GoTrue/GoTrueClient.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/GoTrue/GoTrueClient.swift b/Sources/GoTrue/GoTrueClient.swift index e6f4faf..6acb115 100644 --- a/Sources/GoTrue/GoTrueClient.swift +++ b/Sources/GoTrue/GoTrueClient.swift @@ -167,7 +167,6 @@ public final class GoTrueClient { /// Allows signing in with an ID token issued by certain supported providers. /// The ID token is verified for validity and a new session is established. - @_spi(Experimental) @discardableResult public func signInWithIdToken(credentials: OpenIDConnectCredentials) async throws -> Session { try await _signIn(