Advertisement
danilolsoares

Untitled

Nov 17th, 2019
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.ajax({
  2.     type: "POST",
  3.     url: 'http://127.0.0.1:5000/auth/login'
  4. }).done(function(retorno) {
  5.     var token = retorno.token;
  6.     var exp = retorno.exp;
  7.     var email = retorno.email;
  8. }).fail(function(retorno) {
  9.     alert( "falha na requsição" );
  10. }).always(function(retorno) {
  11.     alert( "sempre que a requisição retornar" );
  12. });;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement