Sha256: bad1ad15ac8a0a682d3919b860a9a632a87b09f0f51dd1beb65f4d7f069f9a74
Contents?: true
Size: 593 Bytes
Versions: 6
Compression:
Stored size: 593 Bytes
Contents
import api from '@/services/base' export const usersService = { /** * Sign in request * @param {object} params * @param {string} params.user.email - user email * @param {string} params.user.password - user password * @returns {Promise<object>} - response * @example * const response = await usersService.signIn({ * user: { * email: 'admin@example.com', * password: 'password' * } * }) */ signIn: (params) => api.post('/users/sign_in', params), currentUser: () => api.get('/users/current'), signOut: () => api.delete('/users/sign_out') }
Version data entries
6 entries across 6 versions & 1 rubygems