Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Created an auth module #18

Merged
merged 2 commits into from
Sep 5, 2018
Merged

Conversation

olavoasantos
Copy link
Owner

@olavoasantos olavoasantos commented Sep 5, 2018

Description

Refactored the auth implementation to a module. This allows the user to change certain aspects of the module, such as the base data response and register/login/logout route response.

Proposed API

faux.modules.assign('auth', 'onSuccess', ({ user, token }) => { id: user.id, token });

@olavoasantos olavoasantos added refactor Improving a current implementation done labels Sep 5, 2018
@olavoasantos olavoasantos self-assigned this Sep 5, 2018
@olavoasantos olavoasantos merged commit 9cd0017 into master Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done refactor Improving a current implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant