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

ft(helpers): create reusable functions #28

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

vic3king
Copy link
Contributor

@vic3king vic3king commented Apr 2, 2019

What does this PR do?

creates some reusable functions for signing tokens and hashing passwords

Description of Task to be completed?

  • install jwt and bcrypt
  • create reusable functions for hashing and comparing passwords
  • create reusable function for signing and verifying jwt

How should this be manually tested?

NA

Any background context you want to provide?

NA

What are the relevant pivotal tracker stories?

NA

Screenshots

NA

Questions:

NA

@@ -0,0 +1,55 @@
import jwt from 'jsonwebtoken';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

@Akinmyde Akinmyde temporarily deployed to hermes-ah-backend-stagin-pr-28 April 2, 2019 11:13 Inactive
@rotimi-babalola
Copy link
Contributor

Fix merge conflicts in this PR

- install jwt and bcrypt
- create reusable function for hashing and comparing passwords
- create reusable function foir signing and verifying jwt
@Akinmyde Akinmyde temporarily deployed to hermes-ah-backend-stagin-pr-28 April 2, 2019 11:56 Inactive
@vic3king
Copy link
Contributor Author

vic3king commented Apr 2, 2019

Fix merge conflicts in this PR

Fixed

});
};
return Rating;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is already in develop why is this showing us a change in this PR? @vic3king

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is already in develop why is this showing us a change in this PR? @vic3king

This is still from my rebase on branch develop. I've not had a reason to work with this file. I just pulled develop and rebased. Those changes are coming probably as a result of that rebase.

});
},
down: queryInterface => queryInterface.dropTable('Ratings'),
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as 👇

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why. I pulled branch develop, checked out my branch and rebased. I didn't have to touch any of these files. Those files are what @McHardex i worked on. I will have to rebase again since his branch has been merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rotimi-babalola I have resolved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants