NAME

plenigo::LoginManager - Handles log ins of a customer.

SYNOPSIS

use plenigo::LoginManager;

# Prepare configuration

my $activate_testing = 0; # set if testing mode should be enabled
my $configuration = plenigo::Configuration->new(company_id => 'YOUR_COMPANY_ID, secret => 'YOUR_SECRET', staging => $activate_testing);

# verify a customers log in data 

my $loginManager = plenigo::LoginManager->new(configuration => $configuration);
my %customer_details = $loginManager->verifyLoginData($customer_email, $customer_password);
my $customer_id = $customer_details{'userId'};

# create one or more login tokens for the checkout process or customer snippets

my %loginTokens = $loginManager->createLoginTokens($customer_id);

DESCRIPTION

plenigo::LoginManager offers functionality to log in a customer.

addAccess($customer_id, $amount)

Create login tokens for a customer to use during the checkout process or showing the customer snippets.

verifyLoginData($email, $password, $browser, $os, $source)

Verify a customer's login data.