-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.php
55 lines (48 loc) · 1.79 KB
/
plugin.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Biometric Authentication - Login with Passkey
*
* @package biometric-authentication
* @author Ivan Kristianto <[email protected]>
* @copyright 2023-2024 Ivan Kristianto
* @license GPL v2 or later
*
* Plugin Name: Biometric Authentication
* Description: Passkeys are a safer and easier alternative to passwords. Simply use your fingerprint or face ID to log in with ease. No more struggling to remember complex passwords.
* Version: 0.3.8
* Author: Ivan Kristianto
* Author URI: https://github.com/ivankristianto/
* Plugin URI: https://github.com/ivankristianto/wp-passkey/
* Text Domain: biometric-authentication
* Requires PHP: 8.1
* Tested up to: 6.5
* License: GPLv2 or later
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
declare( strict_types=1 );
namespace BioAuth;
/**
* Shortcut constant to the path of this file.
*/
const BASE_DIR = __DIR__;
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
return;
}
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/inc/class-source-repository.php';
require_once __DIR__ . '/inc/class-webauthn-server.php';
require_once __DIR__ . '/inc/rest-api.php';
require_once __DIR__ . '/inc/login.php';
require_once __DIR__ . '/inc/user-profile.php';
require_once __DIR__ . '/inc/namespace.php';
// Kickstart the plugin.
bootstrap();