Permalink
Browse files

feat(refresh-token): optional refreshTokenUrl

  • Loading branch information...
doktordirk committed May 23, 2016
1 parent eac4b3f commit 234e10246824147421185d9ddb3c26cfac950f6a
Showing with 5 additions and 1 deletion.
  1. +3 −1 src/authService.js
  2. +2 −0 src/baseConfig.js
@@ -142,7 +142,9 @@ export class AuthService {
client_id: this.config.clientId ? this.config.clientId : undefined
};
this.client.post(this.config.withBase(this.config.loginUrl), content)
this.client.post(this.config.withBase(this.config.refreshTokenUrl
? this.config.refreshTokenUrl
: this.config.loginUrl), content)
.then(response => {
this.authentication.responseObject = response;
this.authentication.resolveUpdateTokenCallstack(this.authentication.isAuthenticated());
@@ -71,6 +71,8 @@ export class BaseConfig {
unlinkUrl = '/auth/unlink/';
// The HTTP method used for 'unlink' requests (Options: 'get' or 'post')
unlinkMethod = 'get';
// The API endpoint to which refreshToken requests are sent. null = loginUrl
refreshTokenUrl = null;
// Token Options

0 comments on commit 234e102

Please sign in to comment.