UNPKG

@sclt/program-seed

Version:

Seed data

11 lines (9 loc) 250 B
module.exports = async function auth(email, password) { const { data: { jwt }, } = await this.Strapi.post('admin/auth/local', { identifier: email, password, }); this.Strapi.defaults.headers['Authorization'] = `Bearer ${jwt}`; };