Skip to content

Commit

Permalink
Removed expiresAt for idTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lboyette-okta committed Jul 19, 2016
1 parent ba9a154 commit b9abe34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ function getIdToken(sdk, oauthOptions, options) {

util.extend(constructedToken, {
idToken: res['id_token'],
claims: jwt.payload,
expiresAt: jwt.payload.exp
claims: jwt.payload
});
}

Expand Down
3 changes: 1 addition & 2 deletions test/spec/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ define(function(require) {
expectedResp: {
idToken: tokens.standardIdToken,
claims: tokens.standardIdTokenClaims,
scopes: ['openid', 'testscope'],
expiresAt: tokens.standardIdTokenClaims.exp
scopes: ['openid', 'testscope']
}
})
.fin(done);
Expand Down
3 changes: 1 addition & 2 deletions test/util/oauthUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ define(function(require) {
var defaultResponse = {
idToken: tokens.standardIdToken,
claims: tokens.standardIdTokenClaims,
scopes: ['openid', 'email'],
expiresAt: tokens.standardIdTokenClaims.exp
scopes: ['openid', 'email']
};

oauthUtil.setup = function(opts) {
Expand Down

0 comments on commit b9abe34

Please sign in to comment.