aboutsummaryrefslogtreecommitdiffstats
path: root/paste/store.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/store.py')
-rw-r--r--paste/store.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/paste/store.py b/paste/store.py
index f69c03d..427345b 100644
--- a/paste/store.py
+++ b/paste/store.py
@@ -89,6 +89,11 @@ class Store:
)
return cur.rowcount == 1
+
+class Auth:
+ def __init__(self, conn: Connection):
+ self.conn = conn
+
def generate_token(self):
token = token_bytes(TOKEN_BYTES)
with self.conn: