I know that you can use Phoenix.Token for generating and verifying tokens for the API.
I generate it this way:
session = %{token: Phoenix.Token.sign(conn, "user", user.id)}
And verifying:
Phoenix.Token.verify(conn, "user", token)
I do not understand how I can organize the process of "deleting" a session when the user logout. Is it possible?