composer require goldenplanetdk/obb-app-service-provider "dev-master"
use GP\App\Provider\Service\AuthorizeServiceProvider;
$app->register(new AuthorizeServiceProvider(), $parameters);
Events:
app.installation.success
app.uninstalled
Create DB table
CREATE TABLE `sessions` (
`sess_id` VARCHAR(128) NOT NULL PRIMARY KEY,
`sess_data` BLOB NOT NULL,
`sess_time` INTEGER UNSIGNED NOT NULL,
`sess_lifetime` MEDIUMINT NOT NULL
) COLLATE utf8_bin, ENGINE = InnoDB;
CREATE TABLE `installations` (
id INT UNSIGNED AUTO_INCREMENT NOT NULL,
shop VARCHAR(256) NOT NULL
COLLATE utf8_unicode_ci,
token VARCHAR(255) NOT NULL
COLLATE utf8_unicode_ci,
is_secure_protocol TINYINT(1) NOT NULL,
created_at DATETIME NOT NULL,
PRIMARY KEY (id)
)
DEFAULT CHARACTER SET utf8
COLLATE utf8_unicode_ci
ENGINE = InnoDB;
MIT