Add token scopes

This commit is contained in:
Johannes Zellner
2022-09-22 21:58:56 +02:00
parent 1f5831b79e
commit 56c567ac86
5 changed files with 54 additions and 10 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS tokens(
accessToken VARCHAR(128) NOT NULL UNIQUE,
identifier VARCHAR(128) NOT NULL, // resourceId: app id or user id
clientId VARCHAR(128),
scope VARCHAR(512) NOT NULL,
scopeJson TEXT,
expires BIGINT NOT NULL, // FIXME: make this a timestamp
lastUsedTime TIMESTAMP NULL,
PRIMARY KEY(accessToken));