Keys stored by their SHA-256 (hashApiKey(key)), as a database table holds them: lookup gets the hash of the key the request sent.
hashApiKey(key)
lookup
hashedKeys((hash) => db.queryOne('SELECT id, scopes FROM api_keys WHERE key_hash = :hash', { hash })) Copy
hashedKeys((hash) => db.queryOne('SELECT id, scopes FROM api_keys WHERE key_hash = :hash', { hash }))
Keys stored by their SHA-256 (
hashApiKey(key)), as a database table holds them:lookupgets the hash of the key the request sent.