about summary refs log tree commit diff
path: root/lib/rook_web/channels/token_channel.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rook_web/channels/token_channel.ex')
-rw-r--r--lib/rook_web/channels/token_channel.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rook_web/channels/token_channel.ex b/lib/rook_web/channels/token_channel.ex
index 72cabb1..d91b6ac 100644
--- a/lib/rook_web/channels/token_channel.ex
+++ b/lib/rook_web/channels/token_channel.ex
@@ -6,6 +6,6 @@ defmodule RookWeb.TokenChannel do
   end
 
   def handle_in("get_token", _attrs, socket) do
-    {:reply, {:ok, %{token: socket.assigns[:token]}}, socket}
+    {:reply, {:ok, %{token: socket.assigns.token}}, socket}
   end
 end