AME-11510 Type generics and reduce method scope in LoginState
OPENAM-7920 Set cookies only for the appropriate domains
AME-6618 CR-6902 Remove legacy persistent cookie implementation
Fix for AME-197