forked from usefulteam/jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jwt-auth.php
32 lines (27 loc) · 922 Bytes
/
jwt-auth.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Plugin Name: JWT Auth
* Plugin URI: https://github.com/usefulteam/jwt-auth
* Description: WordPress JWT Authentication.
* Version: 3.0.0
* Author: Useful Team
* Author URI: https://usefulteam.com
* License: GPL-3.0
* License URI: https://oss.ninja/gpl-3.0?organization=Useful%20Team&project=jwt-auth
* Text Domain: jwt-auth
* Domain Path: /languages
*
* @package jwt-auth
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
// Helper constants.
define( 'JWT_AUTH_PLUGIN_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );
define( 'JWT_AUTH_PLUGIN_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
define( 'JWT_AUTH_PLUGIN_VERSION', '3.0.0' );
// Require composer.
require __DIR__ . '/vendor/autoload.php';
// Require classes.
require __DIR__ . '/class-auth.php';
require __DIR__ . '/class-setup.php';
require __DIR__ . '/class-devices.php';
JWTAuth\Setup::getInstance();