Skip to content

Commit

Permalink
added expires_in fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikpatel351 committed Apr 1, 2021
1 parent 80e0d6d commit 13b2ba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions express/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function setupRoutes(ext) {
}

req.fdkSession.access_token = token.access_token;
req.fdkSession.expires_in = token.expires_in;
req.fdkSession.current_user = token.current_user;
req.fdkSession.refresh_token = token.refresh_token;
await SessionStorage.saveSession(req.fdkSession);
Expand Down
4 changes: 3 additions & 1 deletion express/session/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Session {
this.state = null;
this.scope = null;
this.expires = null;
this.expires_in = null;
this.access_mode = 'online';
this.access_token = null;
this.current_user = null;
Expand All @@ -33,7 +34,8 @@ class Session {
access_token: this.access_token,
current_user: this.current_user,
refresh_token: this.refresh_token,
cluster: this.cluster
cluster: this.cluster,
expires_in: this.expires_in
};
}

Expand Down

0 comments on commit 13b2ba1

Please sign in to comment.