6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
23 lines
404 B
JavaScript
23 lines
404 B
JavaScript
'use strict';
|
|
const content = `--[[
|
|
Release lock
|
|
Input:
|
|
KEYS[1] 'lock',
|
|
ARGV[1] token
|
|
ARGV[2] lock duration in milliseconds
|
|
Output:
|
|
"OK" if lock extented succesfully.
|
|
]]
|
|
local rcall = redis.call
|
|
if rcall("GET", KEYS[1]) == ARGV[1] then
|
|
return rcall("DEL", KEYS[1])
|
|
else
|
|
return 0
|
|
end
|
|
`;
|
|
module.exports = {
|
|
name: 'releaseLock',
|
|
content,
|
|
keys: 1,
|
|
};
|