Skip to content

Auth session not persisted on MacOS Catalyst apps #705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
nexelion opened this issue Apr 12, 2025 · 0 comments
Open
2 tasks done

Auth session not persisted on MacOS Catalyst apps #705

nexelion opened this issue Apr 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nexelion
Copy link

nexelion commented Apr 12, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When using a MacOS catalyst target, the session is not persisted, causing all auth and DB methods to return sessionMissing errors. The same code works fine in iOS targets in a simulator

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Unzip the following (bare bones) project
    SupabaseCatalystMissingSession.zip
  2. Update the supabaseUrl and supabaseKey values inside ContentView.swift to point at your desired supabase instance. which should have an already registered user
  3. In Xcode, select the "Mac Catalyst" build target
  4. Run the app and login with the valid user credentials
  5. Examine the console output, which shows the user being successfully authenticated and then immediately failing to fetch the session.
  6. Now attempt the same thing inside an iOS simulator, which will properly fetch the session

Expected behavior

The session should be available after a user has successfully authenticated with supabase.auth.signIn() from a MacOS catalyst app as it is from an iOS app

Screenshots

Image

System information

  • OS: MacOS 15.3.2
  • supabase-swift: 2.26.1

I see the same problem on #602

@nexelion nexelion added the bug Something isn't working label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant