AuthSession

public protocol AuthSession

Defines the auth session behavior

  • True if the current user has signed in

    App developers can use this flag to make local decisions about the content to display (e.g., “Should I show this protected page?”) but cannot use it to make any further assertions about whether a network operation is likely to succeed or not.

    true if a user has authenticated, via any of:

    isSignedIn remains true until we call Amplify.Auth.signOut. Notably, this value remains true even when the session is expired. Refer the underlying plugin documentation regarding how to handle session expiry.

    Declaration

    Swift

    var isSignedIn: Bool { get }