UNPKG

piral-auth

Version:

Plugin for handling authentication in Piral.

13 lines 287 B
export function setUser(ctx, user) { ctx.dispatch((state) => { ctx.emit('change-user', { current: user, previous: state.user, }); return { ...state, user, }; }); } //# sourceMappingURL=actions.js.map