Download the PHP package firstlogicmetalab/vact-server without Composer
On this page you can find all versions of the php package firstlogicmetalab/vact-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download firstlogicmetalab/vact-server
More information about firstlogicmetalab/vact-server
Files in firstlogicmetalab/vact-server
Package vact-server
Short Description Server-only VACT client: mint access tokens and verify webhooks. No dependencies.
License proprietary
Homepage https://vact.online/docs.html
Informations about the package vact-server
firstlogicmetalab/vact-server
Server-only VACT client for PHP. No Composer dependencies — just
ext-curl and ext-json.
New to VACT? Create a free account at vact.online — ₹100 of calling credit to build with, no card required. Full guides and API reference: vact.online/docs.html.
Your backend is the only place the App Secret ever lives. It authenticates your own user, then asks VACT for a short-lived token scoped to them.
Verifying webhooks
Read the raw body. Using $_POST or a re-encoded array changes the bytes
and the signature will not match.
Verification is timing-safe (hash_equals) and rejects deliveries whose
timestamp is more than five minutes old, which stops replay.
Deleting a user's data
Full documentation: https://vact.online/docs.html
Errors
VactServerError carries errorCode (stable, e.g. invalid_signature) and
status (the HTTP code, when there was one). It is named errorCode rather
than code because PHP's built-in Exception already reserves $code for an
integer.
Testing
Client SDKs (web/React, React Native, Flutter), runnable examples and the full API reference: https://vact.online/docs.html · Sign up free: https://vact.online
All versions of vact-server with dependencies
ext-curl Version *
ext-json Version *