aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rook/utils/token.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rook/utils/token.ex b/lib/rook/utils/token.ex
index 036d5dc..98617fe 100644
--- a/lib/rook/utils/token.ex
+++ b/lib/rook/utils/token.ex
@@ -1,9 +1,9 @@
defmodule Rook.Token do
@alphabet "abcdefghijklmnopqrstuvw0123456789"
-
def token() do
- Nanoid.generate(21, @alphabet)
+ # TODO: Check for collisions!
+ Nanoid.generate(6, @alphabet)
end
def match?(token, socket) do