Change api

This commit is contained in:
Owen 2025-04-28 21:50:48 -04:00
parent f5a3fd7202
commit e236364124
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
4 changed files with 5 additions and 5 deletions

View file

@ -323,7 +323,7 @@ export class Config {
try { try {
const response = await fetch( const response = await fetch(
"https://api.dev.fossorial.io/api/v1/license/validate", "https://api.fossorial.io/api/v1/license/validate",
{ {
method: "POST", method: "POST",
headers: { headers: {

View file

@ -63,9 +63,9 @@ type TokenPayload = {
export class License { export class License {
private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds
private validationServerUrl = private validationServerUrl =
"https://api.dev.fossorial.io/api/v1/license/professional/validate"; "https://api.fossorial.io/api/v1/license/professional/validate";
private activationServerUrl = private activationServerUrl =
"https://api.dev.fossorial.io/api/v1/license/professional/activate"; "https://api.fossorial.io/api/v1/license/professional/activate";
private statusCache = new NodeCache({ stdTTL: this.phoneHomeInterval }); private statusCache = new NodeCache({ stdTTL: this.phoneHomeInterval });
private licenseKeyCache = new NodeCache(); private licenseKeyCache = new NodeCache();

View file

@ -44,7 +44,7 @@ export async function validateSupporterKey(
const { githubUsername, key } = parsedBody.data; const { githubUsername, key } = parsedBody.data;
const response = await fetch( const response = await fetch(
"https://api.dev.fossorial.io/api/v1/license/validate", "https://api.fossorial.io/api/v1/license/validate",
{ {
method: "POST", method: "POST",
headers: { headers: {

View file

@ -204,7 +204,7 @@ export default function SupporterStatus() {
Payments are processed via GitHub. Afterward, you Payments are processed via GitHub. Afterward, you
can retrieve your key on{" "} can retrieve your key on{" "}
<Link <Link
href="https://supporters.dev.fossorial.io/" href="https://supporters.fossorial.io/"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="underline" className="underline"