phoenix_token_auth
phoenix_token_auth copied to clipboard
Authorization JWT in socket
Plug is not works in chanel (sockets), so there is no way to do Authorization in chanels. The easiest way it's to make defp check_token
public and execute in chanel controller.