src/api/auth.js
// login and get ID-Token
login and get ID-Token
login and get ID - Token
function login (params) {
  const data = {
    email: params.mail,
    password: params.password,
    client_id: params.client_id
  }
  return fetch({
    url: 'http://dev-oidc.wuanla.tk/api/users/login', 
    method: 'post',
    data
  })
}
function login ( params ) { const data = { email : params . mail , password : params . password , client_id : params . client_id } return fetch ( { url : 'http://dev-oidc.wuanla.tk/api/users/login' , method : 'post' , data } ) }
login and get ID-Token
login and get ID - Token
// del /api