Closed erneestoc closed 9 years ago
How can I send auth header to test secure routes? Another question would be.. Is it possible to use the Phoenix.Token.sign function from the before block to sign users in?
Excuse me for not having answered. Did you find a solution?
Sure, I used Plug.Conn.put_req_header to add the secure token to my test request. It has nothing to do with espec.
:thumbsup:
How can I send auth header to test secure routes? Another question would be.. Is it possible to use the Phoenix.Token.sign function from the before block to sign users in?