Skip to content

Commit

Permalink
update to pre8
Browse files Browse the repository at this point in the history
  • Loading branch information
richpryce committed Nov 7, 2022
1 parent a5f3eca commit 93c1210
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/pluto-headers",
"version": "2.0.1-pre6",
"version": "2.0.1-pre8",
"description": "Header components for pluto",
"repository": "git://github.com/guardian/pluto-headers",
"main": "build/index",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/DecodedProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function JwtData(jwtData: object) {
switch (prop) {
case "iat_moment":
return utcTime(target.iat);
case "exp":
case "exp_moment":
return utcTime(target.exp);
case "username":
return target.preferred_username ?? target.username;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/OAuth2Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export const refreshLogin:(oAuthConfig:OAuthContextData, userContext:UserContext
console.log("Server response: ", content);
const result = await verifyFunction(oAuthConfig, content.id_token ?? content.access_token, content.refresh_token, content.expires_in);
const updatedProfile = JwtData(result);
console.log("Updated profile data: ", updatedProfile)
userContext.updateProfile(updatedProfile);
console.log("Updated profile: ", userContext.profile)

resolve();
} catch(err) {
reject(err);
Expand Down

0 comments on commit 93c1210

Please sign in to comment.