%s

', esc_html__( 'Sirius Press Auth needs Sirius Press Core to be active. Wallet sign-in is off until it is.', 'sirius-press' ) ); } ); return; } foreach ( array( 'challenge', 'login', 'register', 'recovery', 'rest', 'profile', 'settings' ) as $part ) { require_once SIRIUS_PRESS_AUTH_DIR . 'includes/class-spa-' . $part . '.php'; } SPA_Login::hooks(); SPA_Register::hooks(); SPA_Recovery::hooks(); SPA_REST::hooks(); SPA_Profile::hooks(); SPA_Settings::hooks(); }, 5 ); /** * Ask the current user to re-prove their key before something irreversible. * * Intended for other plugins: hand it a purpose string and it returns the * challenge to render; verify the answer with the `/sirius-press/v1/confirm` * endpoint. Exposed as a plain function so a plugin does not have to know * this fork's class names to use it. * * @return array{nonce:string,message:string} */ function sirius_press_confirmation_challenge() { $nonce = SPA_Challenge::issue(); return array( 'nonce' => $nonce, 'message' => SPA_Challenge::message( $nonce, SPA_Challenge::PURPOSE_CONFIRM ), ); }