Guest User

Untitled

a guest
Mar 23rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. curl http://localhost:4000/api/login?email=bob@example&password=1234
  2.  
  3. HTTP/1.1 200 OK
  4. authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXyLp0aSI6ImefP2GOWEFYWM47ig2W6nrhw
  5. x-expires: 1499255103
  6. content-type: text/plain; charset=utf-8
  7.  
  8. success
  9.  
  10. authUser =
  11. Http.send "http://localhost:4000/api/login?email=bob@example&password=1234"
  12.  
  13. Jwt.get token "/api/data" dataDecoder
  14. |> Jwt.send DataResult
Add Comment
Please, Sign In to add comment