MoEngageNetworkAuthorizationConfig

@objc
public class MoEngageNetworkAuthorizationConfig : NSObject

Configuration Related to Network Request Authorization.

  • Jwt Configuration, if true all Network Request will be authenticated with jwt token By Default, applicable for only identified users

    Declaration

    Swift

    @objc
    public let isJwtEnabled: Bool
  • If true, JWT will be enabled for all users (identified and anonymous both).

    Declaration

    Swift

    @objc
    public let shouldEnableForAllUsers: Bool
  • Initialize the instance of type MoEngageNetworkAuthorizationConfig

    Declaration

    Swift

    @objc
    public init(isJwtEnabled: Bool, shouldEnableForAllUsers: Bool)

    Parameters

    isJwtEnabled

    Pass true to enable to authenticate all API calls with jwt token

    shouldEnableForAllUsers

    Pass true to enable jwt for all users (identified and anonymous both)

  • Initialize the instance of type MoEngageNetworkAuthorizationConfig

    Declaration

    Swift

    @objc
    public init(isJwtEnabled: Bool)

    Parameters

    isJwtEnabled

    Pass true to enable to authenticate all API calls with jwt token