You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial session emitted after attempting to refresh the local stored session.
1417
-
This is incorrect behavior and will be fixed in the next major release since it’s a breaking change.
1418
-
For now, if you want to opt-in to the new behavior, add the trait `EmitLocalSessionAsInitialSession` to your Package.swift file when importing the Supabase dependency.
1419
-
The new behavior ensures that the locally stored session is always emitted, regardless of its validity or expiration.
1420
-
If you rely on the initial session to opt users in, you need to add an additional check for `session.isExpired` in the session.
1421
-
1422
-
Check https://github.com/supabase/supabase-swift/pull/822 for more information.
1423
-
"""
1424
-
)
1414
+
// Properly expecting issues during tests isn't working as expected, I think because the reportIssue is usually triggered inside an unstructured Task
1415
+
// because of this I'm disabling issue reporting during tests, so we can use it only for advising developers when running their applications.
1416
+
if !isTesting {
1417
+
reportIssue(
1418
+
"""
1419
+
Initial session emitted after attempting to refresh the local stored session.
1420
+
This is incorrect behavior and will be fixed in the next major release since it’s a breaking change.
1421
+
For now, if you want to opt-in to the new behavior, add the trait `EmitLocalSessionAsInitialSession` to your Package.swift file when importing the Supabase dependency.
1422
+
The new behavior ensures that the locally stored session is always emitted, regardless of its validity or expiration.
1423
+
If you rely on the initial session to opt users in, you need to add an additional check for `session.isExpired` in the session.
1424
+
1425
+
Check https://github.com/supabase/supabase-swift/pull/822 for more information.
0 commit comments