Skip to content
Back

Apple OAuth in SwiftUI

  • 0
  • Self Hosted
  • Auth
  • Apple
Schifty
5 May, 2025, 00:22

Any ideas why this error might be showing up when trying it sign in via apple in SwifUI?

_Concurrency/CheckedContinuation.swift:196: Fatal error: SWIFT TASK CONTINUATION MISUSE: createOAuth2Session(provider:success:failure:scopes:) tried to resume its continuation more than once, throwing User cancelled login.!

TL;DR
Developers encountering error message 'SWIFT TASK CONTINUATION MISUSE' in SwiftUI when using Apple OAuth. The issue seems to be related to resuming the continuation more than once. This could be caused by cancelling the login process prematurely. Double-check the logic for handling OAuth login, ensuring the continuation is only resumed once.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more