mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
refactor: 🚚 Rename Lysand to Versia
This commit is contained in:
parent
5b119949dc
commit
c9f4885c72
27 changed files with 112 additions and 112 deletions
|
|
@ -28,7 +28,7 @@ const checkEvironmentSupport = () => {
|
|||
|
||||
/**
|
||||
* Validates the signature of a request.
|
||||
* @see https://lysand.org/security/signing
|
||||
* @see https://versia.pub/signatures
|
||||
*/
|
||||
export class SignatureValidator {
|
||||
/**
|
||||
|
|
@ -67,7 +67,7 @@ export class SignatureValidator {
|
|||
* @returns A Promise that resolves to a boolean indicating whether the signature is valid.
|
||||
* @throws TypeError if any required headers are missing in the request.
|
||||
* @example
|
||||
* const request = new Request(); // Should be a Request from a Lysand federation request
|
||||
* const request = new Request(); // Should be a Request from a Versia federation request
|
||||
* const isValid = await validator.validate(request);
|
||||
*/
|
||||
async validate(request: Request): Promise<boolean>;
|
||||
|
|
@ -187,7 +187,7 @@ export class SignatureValidator {
|
|||
|
||||
/**
|
||||
* Constructs a signature for a request.
|
||||
* @see https://lysand.org/security/signing
|
||||
* @see https://versia.pub/signatures
|
||||
*/
|
||||
export class SignatureConstructor {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue