tokens: add ip restriction

This commit is contained in:
Girish Ramakrishnan
2025-03-07 11:53:03 +01:00
parent 2b0fd17fbf
commit 5342dae5b3
21 changed files with 177 additions and 44 deletions

View File

@@ -62,6 +62,7 @@ CREATE TABLE IF NOT EXISTS tokens(
scopeJson TEXT,
expires BIGINT NOT NULL, // FIXME: make this a timestamp
lastUsedTime TIMESTAMP NULL,
allowedIpRanges TEXT NULL,
PRIMARY KEY(accessToken));
CREATE TABLE IF NOT EXISTS apps(