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

Add refresh token endpoint #555

Merged
merged 1 commit into from Oct 2, 2016
Merged

Add refresh token endpoint #555

merged 1 commit into from Oct 2, 2016

Conversation

joshsmith
Copy link
Contributor

What's in this PR?

Closes #510 by adding refresh token endpoint in conjunction with code-corps/code-corps-api#306

  • Adds refresh token endpoint
  • Updates to use ember-simple-auth-token by setting timeFactor (works now!)
  • Minor updates to README, unrelated

References

Fixes #510

@@ -84,7 +84,8 @@ module.exports = function(environment) {
// ENV.APP.LOG_VIEW_LOOKUPS = true;

ENV.API_BASE_URL = 'http://api.lvh.me:49235';
ENV.SERVER_TOKEN_ENDPOINT = 'http://api.lvh.me:49235/login';
ENV.SERVER_TOKEN_ENDPOINT = 'http://api.lvh.me:49235/token';

Choose a reason for hiding this comment

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

You could make your life slightly easier by storing the sub-uri's in a constant and appending that to these env vars. That way when you need to change a route, you don't have to search for every instance of "login" or such.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, will implement.

@joshsmith
Copy link
Contributor Author

Thanks for code review @barruumrex 🙌

@joshsmith joshsmith merged commit 631ffaa into develop Oct 2, 2016
@joshsmith joshsmith deleted the 510-refresh-token branch October 2, 2016 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants