mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-15 00:15:04 +02:00
Change api
This commit is contained in:
parent
f5a3fd7202
commit
e236364124
4 changed files with 5 additions and 5 deletions
|
@ -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: {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue