=== Auth4App: phone number sign-in ===
Contributors: auth4app
Tags: login, phone, otp, woocommerce, openid connect
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sign-in and sign-up with a phone number confirmed in Telegram, WhatsApp, Viber or MAX — no SMS and no password.

== Description ==

The plugin adds a “Sign in with phone number” button to the WordPress login page, to the WooCommerce “My account” login form and anywhere with the `[auth4app_login]` shortcode. The visitor confirms the phone number in a messenger on the Auth4App page and returns to the site signed in. New visitors are registered automatically (WooCommerce customers get the phone number as the billing phone).

The plugin is an OpenID Connect client of the Auth4App provider: authorization code flow with PKCE, the ID token signature is checked against the provider keys. The plugin does not store codes or send messages itself.

Administrators and editors never sign in by phone number: they use their password.

Requires a project in the Auth4App account (https://auth4app.com/cabinet) with “Sign-in via OIDC” enabled. Each sign-in is billed by Auth4App.

Installation guide: https://auth4app.com/modules/wordpress

== Installation ==

1. Download the plugin archive from https://auth4app.com/modules/wordpress.
2. Go to Plugins → Add New → Upload Plugin, choose the archive and activate the plugin.
3. Open Settings → Auth4App: phone sign-in and copy the callback URL.
4. In your Auth4App project open the “Sign-in via OIDC” tab, enable OIDC sign-in, add the callback URL and copy client_id and client_secret.
5. Paste the keys into the plugin settings and click “Check connection”.

== Frequently Asked Questions ==

= Where does the button appear? =

On wp-login.php, in the WooCommerce “My account” login form and wherever you put `[auth4app_login redirect="/my-account/"]`.

= How are updates delivered? =

From auth4app.com: WordPress shows the new version on the Plugins and Updates screens. The archive is checked against the SHA-256 published by Auth4App before installation.

== Changelog ==

= 1.0.0 =
* First version: phone number sign-in and sign-up via the Auth4App OpenID Connect provider, buttons for wp-login.php, WooCommerce and a shortcode, updates from auth4app.com, English and Russian.
