Skip to content

#1091 add google id tokens refresh - #1225

Merged
tomholub merged 5 commits into
masterfrom
feature/issue-1091-id-token-storage
Dec 15, 2021
Merged

tomholub merged 5 commits into
masterfrom
feature/issue-1091-id-token-storage

Conversation

@sosnovsky

@sosnovsky sosnovsky commented Dec 14, 2021 •

Copy link
Copy Markdown
Collaborator

This PR adds auto-refresh for Google id tokens.

close #1091


Tests (delete all except exactly one):

  • Difficult to test (explain why) - it's GTMAppAuth built-in functionality and we're using mock GoogleUserService in tests.

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@sosnovsky
sosnovsky requested a review from tomholub December 14, 2021 21:28
@sosnovsky
sosnovsky marked this pull request as ready for review December 14, 2021 21:28
Comment thread FlowCrypt/Functionality/Services/GoogleUserService.swift Outdated
Comment thread FlowCrypt/Functionality/Services/GoogleUserService.swift Outdated
Comment thread FlowCrypt/Functionality/Services/GoogleUserService.swift
Comment thread FlowCrypt/Functionality/Services/GoogleUserService.swift Outdated
@sosnovsky
sosnovsky requested a review from tomholub December 15, 2021 11:36

@tomholub tomholub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +161 to +164
let googleService = GoogleUserService(
currentUserEmail: user.email,
appDelegateGoogleSessionContainer: nil
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We probably could/should dependency-inject this through AppContext. I'll file another issue.

@tomholub
tomholub merged commit 1f41b09 into master Dec 15, 2021
@tomholub
tomholub deleted the feature/issue-1091-id-token-storage branch December 15, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refresh id token periodically, same as access token

2 participants